Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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.

HTML

              
                <html lang="en">
<head>
  <meta charset="utf-8">

  <title>Pre-Test</title>
  <meta name="description" content="The job ad pre-test">
  <meta name="author" content="eCreations">
</head>

<body>
  <header class="page_header floats">
    <nav class="primary nav">
      <a href="https://www.ecreations.net" class="home">eCreations</a>
      <ul class="menu container main">
        <li class="parent menu-item"><span>Home</span></li>
        <li class="parent menu-item"><span>About</span></li>
        <li class="parent menu-item"><span>More</span>
          <ul class="menu container">
            <li class="sub menu-item"><span>Item 1</span></li>
            <li class="sub menu-item"><span>Item 2</span></li>
            <li class="sub menu-item"><span>Item 3</span></li>
            <li class="sub menu-item"><span>Item 4</span></li>
          </ul>
        </li>
        <li class="parent menu-item"><span>Shop</span></li>
      </ul>
    </nav>
  </header>
  <main>
    <article>
      <h4>Hello and Welcome!</h4>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin metus dolor, convallis ut porta non, luctus at magna. Suspendisse et risus aliquet, varius lectus sed, placerat eros. Nulla ut consequat nibh, id facilisis lorem. Nullam tincidunt mollis erat et sollicitudin. Nullam a vestibulum diam, at rutrum erat. Nunc dapibus mauris nec massa blandit aliquet. Aliquam semper dolor sit amet metus aliquet lacinia. Maecenas turpis neque, consequat ut ex consequat, fringilla vestibulum nisi. Aenean a purus in quam pulvinar rutrum. Donec et lacus mauris. Sed consequat mollis libero et volutpat. Fusce dictum hendrerit ipsum, non dignissim dolor consequat eget. Aliquam sed euismod velit, sit amet volutpat mauris. Nam bibendum tincidunt tincidunt.</p>
    </article>
    <section class="flexs">
      <aside class="cta card item-1">
        <header><h3></h3></header>
        <p>Act Now!</p>
        <footer><a href="#" class="button red">Button</a></footer>
      </aside>
      <aside class="cta card item-2">
        <header><h3></h3></header>
        <p>Act Now!</p>
        <footer><a href="#" class="button green">Button</a></footer>
      </aside>
      <aside class="cta card item-3">
        <header><h3></h3></header>
        <p>Act Now!</p>
        <footer><a href="#" class="button blue">Button</a></footer>
      </aside>
    </section>
  </main>
  <footer class="page_footer grids">
    <section class="credits">
      <a href="https://www.ecreations.net">eCreations</a> 2018
    </section>
    <section class="extras">
      <a href="https://www.ecreations.net/careers/">Careers</a>
    </section>
  </footer>
</body>
</html>
              
            
!

CSS

              
                /** Colors **/
$btn-green: #2ecc71;
$btn-blue: #3498db;
$btn-red: #e74c3c;

body {
  margin: 0;
  background: #f2f2f2;
  .page_header,
  .page_footer,
  main {
    background: #e2e2e2;
  }
  .page_header {
    .main {
      background: #cccccc;
    }
    .home {
      background: #cccccc;
    }
  }
  main {
    article {
      background: #c0c0c0;
    }
    .flexs {
      background: #c0c0c0;
    }
  }
  .page_footer {
  }
  .card {
    border: 1px solid #fff;
  }
}
/** END COLORS **/


.page_header {
  width: 100%;
  .nav {
    padding: 0.5rem;
    margin: 1rem;
  }
  .home {
    padding: 0.5rem;
    float: left;
  }
  .menu {
    padding: 0;
    margin: 0;
    float: right;

    .menu {
      float: none;
    }
    .menu-item {
      padding: 0.5rem;
      &:hover .menu {
        display: block;
      }
      .menu {
        display: none;
      }
    }
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
  .flexs {
    .card {
      text-align: center;
    }
    .button {
      margin: 1rem;
      padding: 1rem;
      display: block;
      text-decoration: none;
      color: white;
    }
  }
}

.page_footer {
  margin-top: 5px;
  section {
    padding: 0.5rem;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console