Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <!--This Pen is part of the article, "The Dos & Don’ts for Styling Hyperlinks", at Speckyboy Design Magazine: https://speckyboy.com/styling-hyperlinks/-->

<div class="content">
<article>
<h2>Links without Underlines Are More Difficult to Identify</h2>
<p class="subtle">Instruct your designer to make sure that they always stay on brand, and are honouring the integrity of their work. It goes beyond that, it creates a genuine relationship,” says Ipswich-based design studio <a href="#">Studio Alles</a>. Founded by <a href="#">Thomas Rousset</a> and <a href="#">Jérémy Diotricont</a>, the internationally respected French designers working together for the first time in Paris.</p>

<h2>Underlines Can Be Styled to Match Your Color Scheme</h2>
<p class="standout">Instruct your designer to make sure that they always stay on brand, and are honouring the integrity of their work. It goes beyond that, it creates a genuine relationship,” says Ipswich-based design studio <a href="#">Studio Alles</a>. Founded by <a href="#">Thomas Rousset</a> and <a href="#">Jérémy Diotricont</a>, the internationally respected French designers working together for the first time in Paris.</p>

 </article>
 </div> 
              
            
!

CSS

              
                body {
  color: #000;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a:focus {
  outline: thin dotted;
}

h2 {
  font-family: serif;
  font-size: 1.5em;
  margin: 20px 0 10px;
}

p {
  margin: 0 0 30px;
}  
 .subtle a, .subtle a:visited {
  color: #4c7334;
  text-decoration: none;
}

.subtle a:hover, .subtle a:focus {
  color: #c00000;
}

.standout a, .standout a:visited {
  color: #4c7334;
  text-decoration: underline;
  text-decoration-color: #a8260d;
}

.standout a:hover, .standout a:focus {
  color: #c00000;
}
              
            
!

JS

              
                
              
            
!
999px

Console