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

              
                <div class="header">
  <img src="https://i.imgur.com/AHtd0Zr.png" height="100"></img>
  <a href="#" class="left-border">Explore</a><span>|</span><a href="#">Forum</a><span>|</span><a href="#">Play</a><span>|</span><a href="#">About</a>
</div>

<div class="glance_boxes">
  <div class="glance_box left">
    <p class="box title center">Resources</p>
    <div class="box body">
      <a href="#">SourceCoder 3</a>
      <a href="#">jsTIfied</a>
    </div>
  </div>
  <div class="glance_box">
    <p class="box title center">Latest Posts</p>
    <div class="box body">
      <a href="#">SourceCoder 3</a>
      <a href="#">jsTIfied</a>
    </div>
  </div>
    <div class="glance_box right">
    <p class="box title center">Latest Uploads</p>
    <div class="box body">
      <a href="#">SourceCoder 3</a>
      <a href="#">jsTIfied</a>
    </div>
  </div>
</div>

<div class="news">
  <p class="box title">Title</p>
  <p class="box body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum rhoncus diam sit amet viverra. Proin tempus urna ipsum, ut eleifend nibh finibus in. Duis sed orci finibus, bibendum libero id, auctor diam. Vivamus at interdum erat. Donec vitae bibendum nisl. Vivamus quis orci id urna dapibus hendrerit ut in nulla. Etiam id erat massa. Mauris tempus massa nec felis feugiat, consequat egestas felis lobortis. Ut eget congue erat. Sed sagittis eget massa vel ornare. Proin vitae tellus augue. Proin et faucibus felis. Aliquam a mi sed arcu tempor interdum non eget turpis.</p>
</div>
              
            
!

CSS

              
                /*
  https://i.imgur.com/yhcA9tX.png
  maroon: #7F0C17
  grey: #E0E0E0
*/

body {
  background: #E0E0E0;
  font-family: Calibri;
  margin: 25px 75px 25px 75px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.left-border {
  padding-left: 15px;
  border-left: solid #404040;
}

.header * {
  color: #646464;
  display: inline;
  vertical-align: middle;
  font-size: 36pt;
}

.vertical-line {
  border-left: thick solid #ff0000;
}

.glance_boxes {
  display: flex;
}

.glance_box {
  flex: 1;
  margin: 0px 5px 0px 5px;
}

.glance_box.left {
  margin-left: 0px;
}

.glance_box.right {
  margin-right: 0px;
}

.box.title {
  border-style: solid;
  border-color: #7F0C17;
  border-radius: 5px 5px 0px 0px;
  background: #7F0C17;
  padding: 5px;
  color: #E0E0E0;
}

.box.body {
  border-style: solid;
  border-color: #7F0C17;
  border-radius: 0px 0px 5px 5px;
  padding: 5px;
  margin-top: -16px;
  border-top-style: none;
}

.box.body * {
  color: #AA0000;
  display: block;
  margin: 0px;
}

.center {
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console