Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name= "description" content="This is a paracord portfolio site">
    <title>Brett Harpt | Paracord Designer</title>
      <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
      <link rel="stylesheet" href="src/main.css">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Aaron Harpt</h1>
        <h2>Web Designer</h2>
        </a>
      <ul class="nav">
        <li><a href="index.html" class="selected portfolio">Portfolio</a></li>
        <li><a href="about.html" class="about">About</a></li>
        <li><a href="contact.html" class="contact">Contact</a></li>
        </ul>
    </header>
    <div id="wrapper">
          <section>
          <ul id="gallery">
          <li>
            <a href="Images/image-1.jpg">
            <img src="Images/image-1.jpg" alt="">
            <p>Playing with blending modes in Photoshop. </p>
                  </a>
          </li>
            <li>
            <a href="Images/image-2.jpg">
            <img src="Images/image-2.jpg" alt="">
            <p>Trying to create an 80's style of glows. </p>
                  </a>
          </li>  
              
              <li>
            <a href="Images/image-3.jpg">
            <img src="Images/image-3.jpg" alt="">
            <p>Drips created using Photoshop brushes. </p>
                  </a>
          </li>
              <li>
            <a href="Images/image-4.jpg">
            <img src="Images/image-4.jpg" alt="">
            <p>Creating shapes using repitition. </p>
                  </a>
          </li>
              <li>
            <a href="Images/image-5.jpg">
            <img src="Images/image-5.jpg" alt="">
            <p>Experimentation with color and texture. </p>
                  </a>
          </li>

          <li>
            <a href="Images/image-6.jpg">
            <img src="Images/image-6.jpg" alt="">
            <p>Experimentation with color and texture. </p>
                  </a>
          </li>
           
          </ul>
        </section>
        <footer>
           <!-- <img src="img/twitter-wrap.png" alt="Twitter Logo">
            <img src="img/facebook-wrap.png" alt="Facebook Logo">-->
          <p>&copy; 2015 Aaron Harpt.</p>
        </footer>
        </div>
        <script type="text/javascript" src="Modernizr.js"></script>
</body>
 
</html>








              
            
!

CSS

              
                /* https://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block; }

body {
  line-height: 1; }

ol, ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

* {
  box-sizing: border-box; }

/*******************
COLORS
***************/
/*  site body  */
body {
  background-color: #fff;
  color: #999; }

/* green header*/
header {
  background-color: #6ab47b;
  border-color: #599a68; }

@media (max-width: 660px) {
  .no-flexbox {
    /* nav background on mobile*/ }
    .no-flexbox .nav {
      background: #599a68;
      display: block; } }

/* logo text*/
h1, h2 {
  color: #fff; }

/*links */
a {
  color: #6ab47b; }

/* nav link*/
.nav a, nav a:visited {
  color: #fff; }

/* selected nav link*/
.nav a.selected, .nav a:hover {
  color: #32673f; }

/*******************
GENERAL
***************/
body {
  font-family: 'Open Sans', sans-serif; }

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%; }

#logo {
  text-align: center;
  margin: 0; }

a {
  text-decoration: none; }

img:not(.logo) {
  max-width: 100%; }

h3 {
  margin: 0 0 1em 0; }

/*====
Flexbox General
====*/
/*******************
NAVIGATION
***************/
.no-flexbox nav {
  text-align: center;
  padding: 10px 0;
  margin: 20px 0 0; }
.no-flexbox nav ul {
  list-style: none;
  margin: 0 10px;
  padding: 0; }
.no-flexbox nav li {
  display: inline-block; }
.no-flexbox nav a {
  font-weight: 800;
  padding: 15px 10px; }

@media (max-width: 660px) {
  .no-flexbox body header ul.nav {
    display: block;
    text-align: center; }
  .no-flexbox ul.nav li {
    display: inline-block; } }

/**======
Flexbox Navigation
=====***/
.nav a {
  display: block;
  text-align: center;
  padding: 0.4em; }

.nav {
  justify-content: space-between; }

.nav li:first-child {
  margin-left: auto; }

.nav li {
  margin-left: 3%; }

.nav .contact {
  margin-right: 40px; }

.nav {
  display: flex;
  flex-direction: column; }

.nav {
  display: flex;
  flex-direction: row; }

@media (min-width: 769px) {
  .nav {
    display: flex;
    justify-content: space-around; } }
/*******************
HEADING
***************/
header {
  float: left;
  margin: 0 0 30px 0;
  width: 100%; }

#logo {
  text-align: center;
  margin: 0; }

h1 {
  font-family: 'Changa One', sans-serif;
  margin: 15px 0;
  font-size: 1.75em;
  font-weight: normal;
  line-height: 0.8em; }

h2 {
  font-size: 0.75em;
  margin: -5px 0 0;
  font-weight: normal; }

/*=====
Media Queries
 =====*/
h1 {
  font-size: 2.5em; }

h2 {
  font-size: 0.825em;
  margin-bottom: 20px; }

/**======
Flexbox Header
=====***/
header {
  display: flex;
  flex-direction: column; }

#logo {
  margin-right: auto; }

.logo {
  width: 150px;
  margin: 0;
  padding: 0;
  height: 4.76rem; }

header {
  height: 6rem; }

@media (min-width: 769px) {
  header {
    display: flex;
    justify-content: space-around; }

  header {
    align-items: center; } }
header {
  display: flex;
  flex-direction: row; }

header {
  align-items: center; }

.logo {
  margin-left: auto; }

.logo {
  margin-right: auto; }

h1.logo {
  font-size: 70%; }

header a {
  width: 45%; }

@media (max-width: 660px) {
  .no-flexbox body header #logo {
    text-align: center; }
  .no-flexbox header {
    height: 7rem;
    display: block; }
  .no-flexbox h1 {
    font-size: 1.75em;
    align-self: center; }
  .no-flexbox h2 {
    font-size: 0.75em;
    align-self: center; } }

@media (max-width: 660px) {
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center; } }
/*******************
FOOTER
***************/
footer {
  font-size: 0.75em;
  text-align: center;
  clear: both;
  padding-top: 50px;
  color: #ccc; }

/*******************
PAGE PORTFOLIO
***************/
#gallery {
  margin: 0;
  padding: 0;
  list-style: none; }

#gallery li {
  float: left;
  width: 45%;
  margin: 2.5%;
  background-color: #f5f5f5;
  color: #bdc3c7; }

#gallery li a p {
  margin: 0;
  padding: 5%;
  font-size: 0.75em;
  color: #bdc3c7; }

#gallery li img:not(.logo) {
  width: 400px;
  height: 250px; }

/* Media queries */
/*******************
      PAGE: PORTFOLIO
        ***************/
@media screen and (min-width: 575px) {
  #gallery li {
    width: 28.3333%; }

  #gallery li:nth-child(4n) {
    clear: left; } }
/**======
Flexbox Page-Portfolio
=====***/
@media (min-width: 575px) {
  .no-flexbox section {
    display: flex; }
  .no-flexbox #gallery {
    flex-wrap: wrap; } }
/*******************
PAGE: ABOUT
***************/
.profile-photo {
  display: block;
  max-width: 150px;
  margin: 0 auto 30px;
  border-radius: 100%; }

/*******************
PAGE: CONTACT
***************/
.contactinfo {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em; }

.contactinfo a {
  display: block;
  min-height: 20px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding: 0 0 0 30px;
  margin: 0 0 10px; }

.contactinfo li.phone a {
  background-image: url("../img/phone.png"); }

.contactinfo li.mail a {
  background-image: url("../img/mail.png"); }

@media screen and (min-width: 480px) {
  /*******************
  TWO COLUMN LAYOUT
  ***************/
  #primary {
    width: 50%;
    float: left; }

  #secondary {
    width: 40%;
    float: right; } }

/*# sourceMappingURL=main.css.map */

              
            
!

JS

              
                
              
            
!
999px
What did the HTML say to the CSS? I like your style.

Console