cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

               <div id="container">
            <a href="#nav">
                <img src="http://oswego.edu/~rmushtar/navicon.png" alt="navigation" id="navicon" />
            <a href="#content" class="invisible">Skip Navigation</a>


        <nav id="nav">


                <li class="currentpage"><a href="index.html">Home</a>

                <li><a href="about.html">About</a>

                <li><a href="history.html">History</a>

                <li> <a href="archive.html">Archive   </a>


        <a id="nav"></a>
        <a id="content"></a>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida malesuada pharetra. Vestibulum ultricies auctor tellus id tempus. Nam vel mauris nec velit malesuada sollicitudin eget sit amet lectus. Nunc ante felis, consectetur sit amet ornare a, rhoncus non sem. Donec dignissim ullamcorper commodo. Nulla facilisis velit tellus. Nullam at nunc a augue feugiat auctor. Aliquam erat volutpat.</p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ornare ante sit amet lacus rutrum condimentum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam imperdiet orci vel leo sollicitudin vehicula blandit sem feugiat. Maecenas elementum, magna eu iaculis ornare, lacus tellus rhoncus tortor, sit amet pharetra metus nisl vitae quam. Integer convallis consequat ante in varius. Donec malesuada rutrum lectus id venenatis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas ipsum nisi, aliquam a dictum vel, porttitor quis est. Vestibulum tincidunt malesuada urna, non gravida augue egestas volutpat. Nunc nec rutrum enim.</p>
                Donec eu ligula libero. Vivamus sit amet urna sem, in viverra nisl. Vivamus condimentum tempor fringilla. Aliquam erat volutpat. Aliquam auctor, augue in scelerisque scelerisque, ante arcu vulputate nunc, sit amet accumsan libero ligula ut quam. Proin ac ante vel velit sollicitudin ultrices. Donec pretium mattis sem, a fermentum lorem pharetra sit amet. Praesent nisl felis, vulputate non imperdiet in, volutpat et nisl. Maecenas iaculis elementum lorem, et gravida sem semper vitae. In hac habitasse platea dictumst. Proin id tellus a dolor ullamcorper semper. Integer ornare laoreet tortor, et suscipit orci dictum non. In hac habitasse platea dictumst.</p>

        <!-- #container -->

               * {
   /* clear out browser defaults */
   margin: 0;
   padding: 0;
   box-sizing: border-box;
 /* set mobile design as the default */
 header {
   overflow: auto;
   /* make sure the images in the header are contained within the header box */
   margin-bottom: 1em;
 nav {
   width: 100%;
   /* move the nav to the bottom of the document for use with the navicon. make sure you set the position on the #container to relative */
   position: absolute;
   bottom: 0;
   left: 0;
 nav ul {
   list-style: none;
   /* gets rid of the bullets */
 nav a {
   display: block;
   background-color: #ccc;
   padding: 5px;
   border-bottom: 1px solid black;
   text-align: center;
   text-decoration: none;
 nav a:hover,
 nav a:focus {
   /* navigation rollover */
   background-color: white;
 nav a:link,
 nav a:visited {
   color: black;
 a.invisible:focus {
   /* visually hide the skip nav link by making it the same color as the background */
   color: white;
 img#navicon {
   width: 50px;
   border-radius: 10px;
   border: 1px solid black;
   float: right;
   margin-top: 1em;
   margin-right: 1em;
 #container {
   min-width: 250px;
   max-width: 700px;
   width: 95%;
   margin: 0 auto;
   /* center the div in the browser */
   text-align: left;
   background: #FFFFFF;
   position: relative;
   /* need to set the positioning of the #container for use of absolute positioning on other elements in this div */
   overflow: auto;
   padding-bottom: 10em;
   /* you need enough padding for your navigation to sit without overlap */
 /* for larger screens */
 @media only screen and (min-width: 700px) {
   img#navicon {
     display: none;
     /* don't use the navicon on large screens */
   nav {
     position: relative;
     /* moves nav back to the top */
     margin-bottom: 1em;
     /* add a little margin so that the content does not touch the nav */
   nav li {
     display: inline-block; /*this move the nav elements to the same line */
          width: 24%;

   nav a {
     display: block;
     padding: 5px 15px;
     border-top: 1px solid #000000;
     border-left: 1px solid #000000;
     border-right: 1px solid #000000;
     border-bottom: 0px solid;
     border-top-left-radius: 10px;
     /*these two lines give the nav buttons the tab look */
     border-top-right-radius: 10px;
   #container {
     padding-bottom: 1em;
     /* now that the nav is not on the bottom you don't need so much padding */
Loading ..................