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

              
                <!DOCTYPE html>
<html>
  <body>
    <div class="intro">
      <h1 class="halloween">It's spooky time</h1>
      <p class="halloween">October is a great month for student developers. Check out these opportunities to hone your skills!</p>
    </div>
      <article class="list">
        <section>
          <h2>Hacktoberfest</h2>
          <p class="content">Come one, come all, Hacktoberfest is an ability-inclusive open-source hackathon. They've also got a rockin' website that I kind of tried to channel with this page. Find it <a href="https://hacktoberfest.digitalocean.com/faq">here</a>. 
        </section>
        <section>
          <h2>Cyber Security month</h2>
          <p>I used to want to be a cryptographer when I grew up. Then, I learned that you had to know a <em>lot</em> of math to be a code breaker. So, now I just daydream about being a mathematician-spy and read articles like <a href="https://learntocodewith.me/posts/cybersecurity/">this one</a> on becoming a cybersecurity expert. 
        </section>
        <section>
          <h2>
      </article>
    <div>
    </div> 
  </body>
              
            
!

CSS

              
                /*My colors:
#44355b
#31263e
#221e22
#eca72c
#ee5622 */

/*note: itc stands for "in this case"*/

@import url(https://fonts.googleapis.com/css?family=Lobster);

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);

/*Select an element by tag name; in this case, select the body element*/

body {
  background-color: #31263e;
}

h2 {
  color: #ee5622;
}

a {
  color: #eca72c;
}

/*Select an element by class name; itc, select everything labeled "intro"*/

.intro {
  color: #eca72c;
  font-family: "Lobster";
}

/*Select an element with a certain class name; itc, select every h1 element that is labeled "hallowen"*/
h1.halloween {
  font-size: 48px;
  padding-top: 15px;
}

/*Select two elements at the same time */
h1,
h2 {
  text-align: center;
  margin: 0 auto; 
}

/*Select a specific element that appears within another element; itc, select every paragraph that appears within a div*/
div p {
  color: #fff;
  font-family: "Source Sans Pro";
  text-align: center;
  padding-top: 15px;
}

/*Select a certain element every time it is the child of an element with a certain class; itc, select every h2 that is the daughter of a "list" class element*/
.list h2 {
  font-family: "Source Sans Pro";
  padding: 20px;
  font-size: 28px;
}

.list p {
  color: #fff;
  max-width: 750px;
  margin: 0 auto;
  text-align: left; 
  font-family: "Source Sans Pro";
  line-height: 1.75;
}
              
            
!

JS

              
                
              
            
!
999px

Console