css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              <h1 id="stop">Hashtag Links with Margin</h1>
<ol class="list">
  <li><a href="#sone">Section One</a></li>
  <li><a href="#stwo">Section Two</a></li>
  <li><a href="#sthree">Section Three</a></li>
  <li><a href="#sfour">Section Four</a></li>
<h2 id="sone" class="xtarget">Section One <a class="up" href="#top">〈</a><a class="down" href="#stwo">〈</a></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget tempus erat. Sed ipsum quam, scelerisque id sollicitudin eget, laoreet in tortor. Nulla semper ipsum arcu, eget tempor nisl egestas eu. Mauris aliquam, eros a lobortis eleifend, orci quam aliquam dui, nec ultricies dui nibh sit amet ante. Suspendisse id mattis mauris, nec hendrerit elit. Phasellus accumsan tristique enim in euismod. In sit amet nunc vel eros elementum dictum. Etiam rutrum diam ut dictum finibus. Nulla consequat fringilla orci a porttitor. Ut at consequat nisl. Nam ultricies tempor metus at sagittis. Curabitur ut blandit enim. Nulla eget accumsan diam, eu dapibus ipsum. Fusce orci leo, volutpat et sapien vel, gravida elementum arcu.</p>
<h2 id="stwo" class="xtarget">Section Two <a class="up" href="#sone">〈</a><a class="down" href="#sthree">〈</a></h2>
<p>In quis ultrices nibh. Morbi et urna dignissim, pretium magna nec, aliquam ex. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer semper justo eu sem tempor venenatis. Aenean elementum augue ante, sed consectetur metus efficitur id. Pellentesque varius lectus eget eleifend iaculis. Praesent posuere tellus non velit posuere pulvinar. Maecenas luctus dignissim suscipit. Ut vehicula erat a risus gravida sollicitudin. Suspendisse quam risus, tincidunt eu dapibus eu, suscipit id arcu.</p>
<h2 id="sthree" class="xtarget">Section Three <a class="up" href="#stwo">〈</a><a class="down" href="#sfour">〈</a></h2>
<p>Nullam consequat lectus eget magna interdum dapibus. Nam cursus aliquam commodo. Nullam interdum eleifend odio eu iaculis. Etiam convallis pellentesque erat, eget pharetra nulla tristique at. Proin auctor augue eleifend bibendum gravida. Phasellus pharetra hendrerit arcu sed suscipit. Proin quis maximus felis. Vestibulum pharetra lectus in metus sodales, ac volutpat augue euismod. Donec quis scelerisque augue, ullamcorper tincidunt nulla. Etiam tempor nibh ut tellus porttitor venenatis. Phasellus aliquam aliquet purus, sit amet luctus quam fermentum ultrices. Donec aliquam elit vel lectus sollicitudin lacinia lacinia gravida ipsum. Donec id justo nibh. Curabitur vulputate libero vitae lectus facilisis, vel mollis nisl fermentum. Vestibulum at ultrices nulla. Etiam feugiat sem eget turpis semper posuere.</p>
<h2 id="sfour" class="xtarget">Section Four <a class="up" href="#sthree">〈</a></h2>
<p>Integer ultrices efficitur tincidunt. Mauris sed leo eget ante cursus posuere. Mauris sit amet elit ut enim fermentum hendrerit eu in augue. Praesent vitae auctor tortor. Quisque pretium est vitae vehicula ultricies. Etiam libero nisi, molestie sit amet justo quis, fringilla tempor odio. Sed vitae nisl in nisi dictum bibendum. Integer porttitor, nunc in bibendum lobortis, ex nunc volutpat massa, eu vestibulum metus magna eget metus. Nunc eleifend placerat ante, sed interdum sem laoreet eget. Pellentesque et diam sed enim rutrum ornare. Donec eget velit in mi eleifend auctor. Nullam elementum nulla eu dui congue ultricies. Phasellus quis tellus eget nibh accumsan feugiat eu non risus.</p>
              body { color:#777; font-family:'Lato', sans-serif; font-size:16px; line-height:1.714; max-width:600px; margin:24px auto 48px; padding:1.5em; }
a { color:#2bbbb3; text-decoration:none; -webkit-transition:.2s; transition:.2s; }
a:hover { color:#31d4cc; border-bottom:1px dotted; }

/* Style :target with margin & transition. The 's' can be changed to whatever works (I used it here to represent 'sections'). Adjust transition speed to .001s for instantaneous. */
.xtarget:target { color:#2bbbb3; margin-top:-12px; padding-top:60px; }

/* Add 'Currently Reading' to targeted section (optional) */
.xtarget:target:before { content:'Currently Reading'; font-family:'Open Sans', sans; font-size:12px; background:#ccc; border-radius:3px; background-clip:padding-box; color:#fff; padding:0 5px; position:absolute; top:24px; }

/* Navigation arrows for list items (optional) */
h1, h2 { color:#5e5e5e; font-family:'Georgia', Georgia, serif; font-weight:400; letter-spacing:-.025em; }
h1 { font-size:36px; }
h2 { position:relative; font-size:24px; margin:36px 0 12px; }
h2 a { font-size:16px; border:1px solid #efefef; border-radius:1000px; background-clip:padding-box; display:inline-block; width:24px; height:36px; line-height:38px; margin-left:15px; vertical-align:middle; }
h2 a:hover { color:#fff; background:#2bbbb3; }
h2 a.up {
-ms-transform:rotate(90deg); /* IE 9 */
-webkit-transform:rotate(90deg); /* Safari and Chrome */
transform:rotate(90deg); }
h2 a.down {
-ms-transform:rotate(-90deg); /* IE 9 */
-webkit-transform:rotate(-90deg); /* Safari and Chrome */
transform:rotate(-90deg); }
p { color:#777; font-size:18px; line-height:1.714; font-weight:300; letter-spacing:.01em; margin-bottom:24px; }

/* Hover Selectors to list (optional) */
.list li { position:relative; padding-bottom:6px; }
.list li:hover:before { content:'›'; color:#2bbbb3; position:absolute; left:-40px; line-height:1.2; }
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................