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

              
                <h1>Lorem ipsum</h1>
<p>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="">Nam pharetra magna sapien</a>, nec dapibus neque consequat ac. Pellentesque vitae ligula id elit rhoncus vestibulum facilisis in felis. Ut eget lorem non ante tincidunt facilisis eu fringilla tellus. Morbi neque purus, <a href="">porttitor at magna nec</a>, blandit scelerisque massa. Pellentesque malesuada a sem in sollicitudin. Aliquam placerat lacinia augue in egestas. In in venenatis purus, sit amet pretium ex. In hac habi<a href="">tasse</a> platea dictumst. Maecenas dapibus lorem ut tincidunt scelerisque. Fusce aliquam pretium pharetra. Nullam semper congue lobortis. Morbi fringilla ullamcorper velit, et molestie sem euismod ac. Donec in felis elit.

Curabitur quis tellus nec mauris blandit porttitor pulvinar eget ante. <a href="">Aenean tristique ultrices volutpat</a>. Ut id ipsum dui. Quisque efficitur quam sem, sit amet maximus orci volutpat vitae. Mauris accumsan non tortor a aliquet. <em>Curabitur augue dui, dapibus a ipsum sit amet, vulputate euismod massa. Cras congue turpis augue, id luctus nisi gravida ut.</em>

  Aliquam vitae nibh eu ipsum ultricies placerat. <a href="">Pellentesque nibh mi</a>, condimentum sed odio sit amet, pulvinar congue dolor. Aenean ullamcorper, orci eu scelerisque sollicitudin, lectus lorem malesuada lacus, id ultrices dolor enim sit amet nulla. Suspendisse quam lacus, lacinia porttitor scelerisque eu, finibus nec velit. <a href="">Curabitur tellus</a> lorem, sodales quis egestas in, congue a risus. In hac habitasse platea dictumst. Pellentesque at commodo quam. Praesent bibendum sed diam sit amet iaculis.
</p>
              
            
!

CSS

              
                html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  font-family: 'Palatino','Didot','Garamond', serif;
}
body{
  margin: 2rem;
  font-size: 1.8em;
  color: rgba(0,0,0,0.8);
  background: #faf8ed  url('https://raw.githubusercontent.com/subtlepatterns/SubtlePatterns/gh-pages/bedge_grunge.png');
}
/* yellow */
@hi1:rgba(227, 221, 36, 0.15);
@hi2:rgba(227, 221, 36, 0.6 );
@hi3:rgba(196, 191, 22, 0.6 );
@hi4:rgba(227, 221, 36, 0.24);
/* green */
@gr1:rgba(167, 255, 135, 0.2 );
@gr2:rgba( 68, 219,  13, 0.55);
@gr3:rgba( 41, 150,  10, 0.4 );
@gr4:rgba(167, 255, 135, 0.2 );

p{ line-height: 1.6em; }
a, em{
  padding: 0.3em    0em 0.2em    0em;
  margin:  0.3em -0.5em 0.3em -0.5em;
  border-radius: 50% 3em 50% 3em;
  color: rgba(0,0,0,0.7);
  -webkit-box-decoration-break: clone;
       -o-box-decoration-break: clone;
          box-decoration-break: clone;
}
a{
  background: linear-gradient(@hi1, @hi2, @hi3, @hi4);
  border-right: solid 0.5em rgba(196,191,22,0.15);
  border-left:  solid 0.5em rgba(227,221,36,0.3);
  text-decoration: none;
}
a:hover, a:active{ color: rgba(0,0,0,0.9); }

em{
  background: linear-gradient(@gr1, @gr2, @gr3, @gr4);
  border-right: solid 0.5em rgba(41,150,10,0.07);
  border-left:  solid 0.5em rgba(68,219,13,0.2);
  font-style: normal;
}
              
            
!

JS

              
                
              
            
!
999px

Console