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="content">
  
  <h1>Wow!</h1>
  <h2>Are you looking for a roommate?</h2>
  <p class="center"><b>Ty Strong</b> is the man you've been looking for!</p>
  <img class="picture" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42863/sillyface.png" alt="" />
  <h3>Who is Ty Strong?</h3>
  <p>Ty is a computer science major who will be attending The Ohio State University. He enjoys long walks on the beach and normal college freshman stuff. His hobbies include web development, hacky sack, and a little bit of computer gaming.</p>
  <p>Pros:</p>
  <ul>
    <li>Self-Bathing!</li>
    <li>Makes great ramen noodles and Easy mac!</li>
    <li>Can tell the difference between your and you're!</li>
  </ul>
  <h3>What kind of roommate is Ty looking for?</h3>
  <p>A sociable male with a personality. No shy people. <u>Seriously</u>. Any major and age is fine. If you are familar with techy stuff, we will have more in common.</p>
  <p>Requirements:</p>
  <ul>
    <li>Has a full set of teeth.</li>
    <li>Gets at least 2 hours of sleep per night.</li>
    <li>Breathes.</li>
  </ul>
  <h3>How do you get ahold of me?</h3>
  <p>My email is <a href="mailto:tystrong25@gmail.com">tystrong25@gmail.com</a>. Ask me questions and stuff! Get to know me. I promise, I'm not a wierdo.</p>
  <h3>Do you <i>really</i> want to stalk me?</h3>
  <p>My Twitter handle is <a target="_blank" href="https://twitter.com/TyBpa">@TyBPA</a>, and my website is at <a target="_blank" href="http://tystrong.me/">tystrong.me</a>.</p>
  
  <div class="small">
    <span>Best Veiwed with</span>
    <br />
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42863/ieftw.gif" alt="" />
    <br />
    <span>Forget all the other browsers and down with the Web 2.0 net police.</span>
  </div>
  
</div>
              
            
!

CSS

              
                body {
  margin: 0;
  background-image: 
    url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/42863/dogespin.gif),
    url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/42863/rainbow.gif);
  background-size: 10%, 600px 1px;
  font-family: 'comic sans ms', 'comic sans', cursive;
  font-size: 1.25em;
}
div.content {
  background: rgba(255,255,255,0.8);
  margin: 100px auto;
  width: 70%;
  padding: 20px 5%;
  max-width: 900px;
  min-width: 500px;
  border-radius: 10px;
}
h1 {
  text-align: center;
  font-size: 3.5em;
  margin: 0;
}
h2 {
  text-align: center;
  font-size: 2em;
}
h3 {
  font-size: 1.5em;
}
div.small {
  width: 200px;
  margin: 20px auto;
  font-size: 0.5em;
  text-align: center;
}
p.center {
  text-align: center;
}
img.picture {
  display: block;
  border-radius: 50%;
  height: 200px;
  margin: 0 auto;
  border: solid 5px #888;
  animation: spin 5s infinite linear;
}
a {
  color: #38c;
  text-decoration: none;
  border-bottom: solid 1px #38c;
  transition: all 200ms;
}
a:hover {
  color: #159;
  border-bottom: solid 5px #159;
}

@media (max-width:500px) {
  div.content {
    width: 90%;
    max-width: 90%;
    min-width: 69px;
    font-size: 0.8em;
  }
}
@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}
              
            
!

JS

              
                
              
            
!
999px

Console