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

              
                <html>
  <head>
    <title>Food Addict</title>
    <link rel = "stylesheet" title = "basic style" type = "text/css" href = "clarion1.css" media = "all"/>
  </head>
  <body>
    <div class = "header">
      <a href = "return.html"><h1>Food Addict</h1></a>
      <p id = "date"></p>
      <p> Austin, TX </p>
      <script>
        var d = new Date();
        document.getElementById("date").innerHTML = d.toDateString();
      </script>
    </div>
    
    <nav id ="navigation">
      <a href="return.html">Restaurants</a>
      <a href="return.html">Drinks</a>
      <a href="return.html">Food of the Day</a>
      <a href="return.html">Recipes</a>
      <a href="return.html">People</a>
      <a href="return.html">Events</a>
      <a href="return.html">Video</a>
      <a href="return.html">Subscribe</a>
    </nav>
    
    <div class = "story">
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg" /></a>
        <div class = "heading">
        <a href="return.html">The Ultimate Guide to Wine &amp; Cheese Dining</a>
      </div>
      <div class = "author">
        <li>BY monica kerr</li>
        <li>September 30 2014</li>
      </div>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg" /></a>
      <div class = "heading">
        <a href="return.html">Around the World in 80 Plates</a>
      </div>
      <div class = "info">
        A look at our World's eats.
      </div>
      <div class = "author">
        <li>BY monica kerr</li>
        <li>September 30 2014</li>
      </div>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <div class = "heading">
        <a href="return.html">Burger + Beer</a>
      </div>
      <div class = "author">
        <li>BY monica kerr</li>
        <li>September 30 2014</li>
      </div>
    </div>
    
    <div class = "recipes">
      <a href="return.html"><h1>Recipes</h1></a>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <p class = "title">
        <a href="return.html">Chocolate Covered Strawberries</a>
      </p>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <p class = "title">
        <a href="return.html">Lemon Glazed Trout</a>
      </p>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <p class = "title">
        <a href="return.html">Snug Breakfast Bear</a>
      </p>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <p class = "title">
        <a href="return.html">Chocolate Covered Strawberries</a>
      </p>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <p class = "title">
        <a href="return.html">Chocolate Covered Strawberries</a>
      </p>
    </div>
    
    <div class = "adcol">
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
      <a href="return.html"><img src = "http://upload.wikimedia.org/wikipedia/commons/d/d3/Nelumno_nucifera_open_flower_-_botanic_garden_adelaide2.jpg"></a>
    </div>
    
    <div  class = "footer">
      <p><i>Copyright &copy The Food Addict Company</i> | <a href="return.html">Home</a> | <a href="return.html">Contact Us</a> | <a href="return.html">Terms of Service</a>
      </p>
    </div>
      
    
  </body>
</html>
      
              
            
!

CSS

              
                .header {
  position: absolute;
  left: 150px;
  width: 1000px;
  border-bottom: 2px solid;
}

.header h1 {
  font-family: Helvetica, Script MT, sans-serif;
  font-size: 90px;
  width: 550px;
  margin-top: 10px;
  margin-left: 0px;
}

.header a:link {
  color: black;
  text-decoration: none;
}

.header a:hover {
  color: #00CCFF;
}

.header a:visited {
  color: black;
}

.header #date {
  margin-top: -140px;
}

.header p {
  font-family: arial;
  color: #808080;
  font-size: 15px;
  margin-left: 600px;
  width: 130px;
}

#navigation {
  position: absolute;
  top: 120px;
  left: 150px;
  font-family: arial;
  font-size: 20px;
}

#navigation a {
  padding-right: 30px;
}

#navigation a:link {
  color: black;
  text-decoration: none;
}

#navigation a:hover {
  color: white;
  background-color: #0099FF;
}

#navigation a:visited {
  color: black;
}

.story {
  position: absolute;
  top: 200px;
  left: 430px;
  width: 450px;
}

.story .heading {
  font-family: helvetica, georgia, sans-serif;
  font-size: 22.5px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.story img {
  width: 100%;
  height: auto;
  padding-top: 10px;
}

.story .author {
  font-family: helvetica;
  font-size: 12.5px;
  color: #AAAAAA;
  text-align: center;
  border-bottom: 2px solid;
  border-bottom-color: black;
  border-top: 2px solid;
  border-top-color: black;
}

.story .author li {
  display: inline-block;
  padding-right: 20px;
  padding-top: 5px;
  margin-bottom: 5px;
}

.story .info {
  font-family: arial, helvetica;
  text-align: center;
  margin-top: -20px;
  margin-bottom: 20px;
}

.story .heading a:link {
  color: black;
  text-decoration: none;
}

.story .heading a:hover {
  color: #FF9900;
}

.story .heading a:visited {
  color: #CC33FF;
}

.recipes {
  position: absolute;
  top: 200px;
  left: 150px;
  width: 220px;
}

.recipes h1 {
  font-family: script mt, helvetica, sans-serif;
  font-size: 40px;
  text-align: center;
  margin-top:0px;
  padding-bottom: 5px;
  border-bottom: 2px solid;
}

.recipes a:link {
  color: black;
  text-decoration: none;
}

.recipes a:hover {
  color: #009900;
}

.recipes img {
  width: 60%;
  padding-left: 45px;
  height: auto;
}

.recipes .title {
  text-align: center;
  font-family: georgia;
  font-size: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid;
  border-bottom-color: gray;
}

.adcol {
  position: absolute;
  top: 200px;
  left: 940px;
  width: 210px;
}

.adcol img {
  width: 100%;
  height: auto;
}

.footer {
  padding-top: 2000px;
}
              
            
!

JS

              
                
              
            
!
999px

Console