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

Quick-add: + add another resource

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.

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.

            
              <body>
  <table>
    <tr>
      <th><a href="#">
<div>Home</div>
        </a>
      </th>
    </tr>
        <tr>
      <th>
        <a href="#">
<div>About</div>
        </a>
      </th>
    </tr>
            <tr>
      <th>
        <a href="#">
<div>Contact</div>
        </a>
      </th>
    </tr>
    </table>

            
          
!
            
              div {
margin-left: -10px;
position: static;  
background-color: #222326;
color: #9c9c9c;
font-family: 'Arial';
padding: 10px;
width: 50%;
text-align: center;
transition: all 200ms linear;
white-space: nowrap;
overflow: hidden;
border-bottom-style: solid;
border-right-style: solid;
border-top-style: solid;
border-color: #9c9c9c;
}

div:hover {background-color: #222326;
color: white;
font-family: 'Arial';
padding: 10px;
width: 100%;
text-align: center;
transition-property: color;
transition-delay: 1s;
transition: all 200ms linear;
border-bottom-style: solid;
border-right-style: solid;
border-top-style: solid;
border-color: white;}

a {text-decoration: none;}

/* When the div and link are both active */
div:active {color: #A72424;
transition: all 0s linear;
border-color: #A72424}
a:active {color: #A72424;
transition: all 0s linear;}

/* Just so that the table is specific when you see the border, if you activate it. */ 
table {width: 130px;}

body {background: black;}
            
          
!
            
              /* Works in Google Chrome, Firefox, and Internet Explorer. Not tested in Safari or Opera. Feel free to use. */
            
          
!
999px
Loading ..................

Console