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 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

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

              
                <link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet">
<title>Tribute to Pizza</title>
<div id="main">
  <header>
    <div id="title"><h1>Ode to <span>pizza...</span></h1></div>
  </header>
  <div id="container">
   
    <div id="tribute-info" class="item">
      <article>
        <header>
          <h2>Brief History</h2>
        </header>
        <p><a href="https://en.wikipedia.org/wiki/Pizza" id="tribute-link" target="_blank">Pizza</a> is a yeasted flatbread generally topped with tomato sauce and cheese and baked in an oven. It is commonly topped with a selection of meats, vegetables and condiments. The term was first recorded in the 10th century, in a Latin manuscript
          from Gaeta in Central Italy. The modern pizza was invented in Naples, Italy, and the dish and its variants have since become popular and common in many areas of the world.</p>

      </article>
    </div>
    <div class="item">
      <article>
        <header>
          <h2>Strange Facts</h2>
        </header>
        <p>
          <ul>
            <li>The average pizzeria uses roughly 55 pizza boxes per day.</li>
            <li>We consume around 251,770,000 pounds of pepperonis every year.</li>
            <li>
              Some popular pizza toppings in Japan are squid and Mayo Jaga (mayonaise, potato and bacon).</li>
            <li>
              The highest-grossing single-unit independent pizzeria in the nation, Moose's Tooth Pub and Pizzeria, is in Anchorage , Alaska. Its annual sales are approximately $6 million.</li>
          </ul>

        </p>
      </article>
    </div>
    <div class="item">
      <article>
        <header>
          <h2>My Favs</h2>
        </header>
        <p>
          <ul>
            <li>Pepperoni</li>
            <li>Cheese</li>
            <li>Greek</li>
            <li>Meat Lovers</li>
            <li>Buffalo Chicken</li>
            <li>Hawaiian</li>
          </ul>
        </p>
<div id="img-div"><img src="https://images.unsplash.com/photo-1534308983496-4fabb1a015ee?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" width="50%" id="image"><div id="img-caption">Pizza yum</div></div>
      </article>
    </div>
  </div>
</div>
<div>
  <div class="reference">
    <h3>References</h3>
    <p>Pizza. (2017, January 22). In Wikipedia, The Free Encyclopedia. Retrieved 09:31, January 26, 2017, from <a href="https://en.wikipedia.org/w/index.php?title=Pizza&oldid=761414379">https://en.wikipedia.org/w/index.php?title=Pizza&oldid=761414379</a></p>
  </div>
  <footer>
    <p>Tribute to Pizza, becoming a better developer: RHeneault</p>
  </footer>
</div>
</div>
              
            
!

CSS

              
                html {
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1046047/pizza.jpg');
}

html,
body {
  color: black;
  font-family: arial;
  margin: 0;
  padding: 0;
}

header h1 {
  font-family: 'Handlee', cursive;
  font-size: 4em;
  margin-left: 10px;
  color:white;
  display:inline-block;
}
#img-div {display:block;}
#img-div > img {display:block;max-width:100%;margin:0px auto;border:2px solid yellow}
h1 > span {
  color: tomato;
}

header h2 {
  font-family: 'Handlee', cursive;
  font-size: 2em;
  margin: 10px 0 0 0;
 
}

p, li {
  font-size: .98em;
  line-height: 25px;
 
}

#main {
  min-height: calc(100vh - 70px);
}
a:link,a:visited,a:focus {color:#000;}
a:hover {font-weight:bold;}
#img-caption {display:none;s}
#container {
  background-color: rgb(204, 204, 204);
  background-color: rgba(204, 204, 204, 0.5);
  border-radius: 6px;
  padding:20px;
  margin:10px;
}

#container {

}


div > footer {
  background-color: #000;
  opacity: .85;
}

.reference {
  text-align: center;
  font-size: .75em;
}

footer {
  text-align: center;
  padding: 10px;
  font-size: .88em;
  width: 100%;
  height: 55px;
}
              
            
!

JS

              
                
              
            
!
999px

Console