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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div>
  <main>
    <p>
      Attempting to use background linear gradients to set full-height column background colors when using floated elements of unequal heights.
    </p>
    <p>
      Unfortunately Chrome seems to have an issue with pixel-precise steps, and cannot handle single-pixel steps at all. Scaling the window causes the edges of the steps to slide around as well. All noted in bugs listed in the other column as well as a StackOverflow discussion.
    </p>
    <p>
      IE11 and Firefox fare better, but cannot handle single-pixel steps.
    </p>
  </main>
  <nav>
  <ul>
    <li><a href="https://code.google.com/p/chromium/issues/detail?id=233879">Issue 233879: Bug with linear-gradient layout</a></li>
    <li><a href="https://code.google.com/p/chromium/issues/detail?id=281489">Issue 281489: Linear Gradient color stops not calculated correctly</a></li>
    <li><a href="http://stackoverflow.com/questions/23627292/webkit-linear-gradient-stops-render-incorrectly">Webkit linear gradient stops render incorrectly</a></li>
    <li><a href="http://adrianroselli.com/2014/10/linear-gradient-problems-in-chrome.html">Linear Gradient Problems in Chrome (at my blog)</a></li>
    </ul>
  </nav>  
</div>
              
            
!

CSS

              
                body {
  background-color: #000;
  font-family: sans-serif;
}
body > div {
  background-color: #fff;
  background-image: linear-gradient(to right, #ff0 0, #ff0 263px, #ddd 263px, #ddd 268px, #f00 269px, #f00 269px, #ddd 270px, #ddd);
}
body > div::after {
  content: "";
  display:block;
  clear: both;
}
main {
  /*border: 1px dotted #0f0;*/
  width: calc(100% - 270px);
  float: right;
  box-sizing: border-box;
  padding: 1em 2em;
}
main p:first-child {
  margin-top: 0;
}
nav {
  /*border:1px dotted #f00;*/
  width: 260px;
  float: left;
  box-sizing: border-box;
  padding: 0;
}
ul {
  padding: 1em 0;
  margin: 0;
  list-style: none;
}
li {
  padding: 0;
}
nav a {
  display: block;
  padding: .5em;
  
}
nav a:hover, nav a:focus {
  background-color: #fff;
  text-decoration: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console