css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <!-- Navigation Bar -->
<div class="row bgc-gray">
  <section id="menu" class="col-6 column">
    <ul>
      <li><i class="fa fa-bars" aria-hidden="true"></i></li>
    </ul>
  </section>
  <section id="social-media" class="col-6 column">
    <nav>

      <ul>
        <li><i class="fa fa-twitter" aria-hidden="true"></i></li>
        <li><i class="fa fa-snapchat" aria-hidden="true"></i></li>
        <li><i class="fa fa-facebook" aria-hidden="true"></i></li>
        <li><i class="fa fa-instagram" aria-hidden="true"></i></li>
        <li><i class="fa fa-pinterest" aria-hidden="true"></i></li>
        <li><i class="fa fa-soundcloud" aria-hidden="true"></i></li>
      </ul>
    </nav>
  </section>
</div>
<div class="row">
  <section class="col-6 column">
    <img src="http://davidhurwich.com/des117/codepen/warwick.jpg" alt="Warwick Castle" />
    <h2>Warwick Castle ( England )</h2>
    <p>
    Warwick Castle is a medieval castle developed from an original built by William the Conqueror in 1068. Warwick is the county town of Warwickshire, England, situated on a bend of the River Avon. The original wooden motte-and-bailey castle was rebuilt in stone in the 12th century. During the Hundred Years War, the facade opposite the town was refortified, resulting in one of the most recognisable examples of 14th century military architecture. It was used as a stronghold until the early 17th century, when it was granted to Sir Fulke Greville by James I in 1604. Greville converted it to a country house and it was owned by the Greville family, who became Earls of Warwick in 1759, until 1978 when it was bought by the Tussauds Group. In 2007, the Tussauds Group merged with Merlin Entertainments, which is the current owner of Warwick Castle.
    </p>
    <a href="https://en.wikipedia.org/wiki/Warwick_Castle"> Warwick Castle</a>
  </section>
 <section class="col-6 column">
      <img src="http://davidhurwich.com/des117/codepen/matsumoto.jpg" alt="Matsumoto Castle" />
    <h2>Matsumoto ( Japan )</h2>
    <p>
    Matsumoto Castle is one of Japan's premier historic castles, along with Himeji Castle and Kumamoto Castle. The building is also known as the "Crow Castle" due to its black exterior. It was the seat of the Matsumoto domain. It is located in the city of Matsumoto, in Nagano Prefecture and is within easy reach of Tokyo by road or rail.
    </p>
   <a href="https://en.wikipedia.org/wiki/Matsumoto_Castle"> Matsumoto Castle</a>
  </section>
</div>
<div class="row">
  <section class="col-6 column">
      <img src="http://davidhurwich.com/des117/codepen/chateau-vitra.jpg" alt="Chateau Vitra" />
    <h2>Chateau Vitre ( France )</h2>
    <p>
    
    The Château de Vitré is a medieval castle in the town of Vitré, in the Ille-et-Vilaine département of France.
    </p>
    <p>
The first castle in Vitré was built of wood on a feudal motte around the year 1000 on the Sainte-Croix hill. The castle was burned down on several occasions, and eventually was bequeathed to the Benedictine monks of Marmoutier Abbey.
    </p>
    <a href="https://en.wikipedia.org/wiki/Ch%C3%A2teau_de_Vitr%C3%A9">Chateau d'Vitra</a>
  </section>
  <section class="col-6 column">
      <img src="http://davidhurwich.com/des117/codepen/edinburgh.jpg" alt="Edinburgh Castle" />
    <h2>Edinburgh Castle ( Scotland )</h2>
    <p>
    Edinburgh Castle is a historic fortress which dominates the skyline of the city of Edinburgh, Scotland, from its position on the Castle Rock. Archaeologists have established human occupation of the rock since at least the Iron Age (2nd century AD), although the nature of the early settlement is unclear. There has been a royal castle on the rock since at least the reign of David I in the 12th century, and the site continued to be a royal residence until 1633. From the 15th century the castle's residential role declined, and by the 17th century it was principally used as military barracks with a large garrison.
    </p>
    <a href="https://en.wikipedia.org/wiki/Edinburgh_Castle"> Edinburgh Castle</a>
  </section>
</div>

            
          
!
            
                /* Do not Change */

nav ul {
  list-style-type: none;
  margin-left: 0px;
  padding-left: 0px;
  float: right;
}

li {
  display: inline;
  font-size: 40pt;
  margin-right: 15px;
}

.col-6 {
  width: 50%;
}

.column {
  float: left;
}

.row {
  content: " ";
  display: table;
  clear: both;
  width: 100%;
  padding: 15px;
}

.bgc-gray {
  background-color: gray;
}

img {
  max-width: 100%;
}


/* Add new CSS below */

/* == Small Devices == */

@media screen and (max-width:600px) {
    .col-6 {
      width: 100%;
    }
  
  #social-media { 
    display: none; 
  }
  
  img { 
    display: none; 
  }
   
a { 
  display: block; 
  width: 150px; 
  padding: 30px; 
  background-color: grey; 
  margin: auto;
  text-align: center;
  color: #FFFFFF; 
  text-decoration: none; 
}
  
  a:hover { 
    color: #000000; 
    background-color: darkgrey; 
  }
}

/* == Large Devices == */

@media screen and (min-width:601px) {
  #menu { 
    display: none; 
  } 
  
  a { 
    color: darkgreen; 
    font-size: 15pt; 
    font-family: sans-serif;
    font-weight: bold; 
  }
  
   a:hover { 
    color: orange; 
  }
  
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console