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.

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 class="container">
  <h1>The Pseudo Element</h1>
  <p>Looking at the before, after, first line, first letter Pseduo Elements.</p>
  <h3>Our Prices</h3>
  <p>Before Pseudo</p>
  <ul class="prices">
    <li>23.98</li>
    <li>40.55</li>
    <li>50.00</li>
    <li>75.99</li>
  </ul>

  <div class="bubble">Speech Bubbles (Before and After Pseudo)</div>

  <p class="letter">Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nulla vitae elit libero, a pharetra augue. Curabitur blandit tempus porttitor. (First letter Pseduo)</p>
  <hr />
  <p class="line">Donec sed odio dui. Sed posuere consectetur est at lobortis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec sed odio
    dui. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. (First line pseudo)</p>
  <h4>Form</h4>
  <p>Using the placeholder pseudo
    <form>
      Last name:
      <input type="text" name="lname" placeholder="Enter your last name">
      <br>
    </form>
</div>
            
          
!

CSS

            
              @import url(https://fonts.googleapis.com/css?family=Oswald|Slabo+27px);
/*Using the before pseudo*/
h1::before{
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 100px;
  background-color: #E74C3C;
  margin-right: 10px;
}
ul.prices li::before{
  content: "£";
  font-weight: bold;
  color: green;
}
/*Speech Bubble Using Before and After Pseudo*/
.bubble{
  color: white;
  background-color: #777;
  background-image: linear-gradient(0deg, #2980B9, #3498DB);
  padding: 60px;
  width: 200px;
  margin: 0 auto;
  text-align: center;
  border-radius: 40px;
  position: relative;
  margin-bottom: 40px;
}
.bubble::before{
  content: "";
  width: 60px;
  height: 60px;
  background-color: #2980B9;
  border-radius: 100px;
  position: absolute;
  bottom: -30px;
  left: 40px;
  z-index: -10;
}
.bubble::after{
  content: "";
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 100px;
  position: absolute;
  bottom: -40px;
  left: 60px;
  z-index: -5;
}
/*First Letter and Line*/
p.letter::first-letter{
  font-size: 75px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  line-height: 0;
  margin-right: 3px;
}
p.line::first-line{
  font-weight: bold;
  color: #2980B9;
}
/*Placeholder styling, this also requires webkit*/
input::placeholder{
  content'';
  color: #3498DB;
}
::-webkit-input-placeholder{
  content'';
  color: #3498DB;
}
input{
 padding: 10px 5px;
 font-size: 16px;
 color: #2980B9;
}
/*Extra Styling*/
html, body{
  font-family: sans-serif;
  color: #444;
  font-family: 'Slabo 27px', serif;
}
.container{
  width: 800px;
  margin-right: auto;
  margin-left: auto;
}
h1,h2,h3,h4,h5,h6{
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  border-bottom: 6px solid #E74C3C;
}
hr{
  border: 2px solid #E74C3C;
}
            
          
!

JS

            
              
            
          
!
999px

Console