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="container">
  <header>
    <h1>Ideas for link styling</h1>
    <p>tiny boilerplates</p>
  </header>
  <div class="inner">
    <h3>:link</h3>
    <p class="link">Lorem ipsum dolor sit amet, consectetur adipisicing elit. <a href="alink.com">Eveniet aperiam expedita</a> explicabo quos omnis cupiditate dolorum quaerat aut modi possimus suscipit atque magni ex nihil voluptatibus quae totam accusamus animi!</p>
    <h3>:visited</h3>
    <p class="visited">Lorem ipsum dolor sit amet, consectetur adipisicing elit. <a href="alink.com">Nisi facilis repudiandae officiis</a> corporis reiciendis eaque nesciunt fugit similique facere voluptatem ad culpa autem obcaecati soluta quidem molestiae expedita enim odit.</p>
    <h3>:hover &amp; :focus</h3>
    <p class="hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. <a href="alink.com">Sequi sint totam</a> rerum quis deleniti eum sit optio esse eos tempora ratione delectus odit ad voluptatibus quos illum tenetur alias saepe?</p>
    <h3>:active</h3>
    <p class="active">Lorem ipsum dolor sit amet, consectetur adipisicing elit. <a href="alink.com">Quasi ad quam doloremque</a> enim consectetur dignissimos error debitis atque soluta perferendis odit saepe quod similique commodi magni aspernatur eligendi omnis! Dolores.</p>
  </div>
</div>
              
            
!

CSS

              
                $main-color: #D25400;
$comp-color: #6389C5;
$third-color: desaturate(#C90018, 35%);
$light-color: #F5FFFA;
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;  
}
h1,h2,h3,h4,h5,h6,p,a {
  margin-top: 0;  
}

html {
  border-left: 7px solid #D25400;
}
.container {
  background-color: #333333;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/bg1.png);  
  border-left: 1px solid #391700;
  float: left;
  width: 100%;
}
p {
  color: $light-color;
  font-family: georgia, "Times New Roman", serif;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  margin-bottom: 1.5rem;
}

h3 {
  border-bottom: 1px solid;
  color: $comp-color;
  font-size: 24px;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 24px;
  margin-bottom: 1.5rem;  
}

.link a {
  color: $comp-color;
}
.visited a {
  color: lighten($third-color,35%);
  text-decoration: none;
  &:hover {
    text-decoration: underline;  
  }
}
.hover a {
  color: $third-color;
}
.active a {
  color: $third-color;
  text-decoration: none;
}
a {
  transition: .2s linear color;
  &:hover {
    color: $third-color;  
  }
}



h1 {
  color: $main-color;
  font-size: 36px;
  font-size: 2.25rem;
  line-height: 1.33333;
  margin-bottom: 0;
}
header {
  background-color: #3d2d30;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/html-bg.png);
  padding: 1% 0;
  text-align: center;
}

.inner {
  background-color: rgba(black, 0.1);
  border-radius: 2px;
//  box-shadow: 0 1px 5px rgba(black, 0.2);
  border: 1px solid rgba(black, 0.04);
  margin: 16px auto 0 auto;
  margin: 1rem auto;
  padding: 1% 2%;
  max-width: 45em;
}
              
            
!

JS

              
                
              
            
!
999px

Console