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

              
                <!--Creating Vertical Menu-->
<!--Using Un-Ordered List-->
<ul>
  <li>
    <a href="http://hanumanteysoftwaresolutions.com/" target="_blank">
      Home
    </a>
  </li>
  <li>
    <a href="https://blogs.hanumanteysoftwaresolutions.com/" target="_blank">
    About Us
    </a>
  </li>
  <li>
    <a href="http://hanumanteysoftwaresolutions.com/" target="_blank">
    Contact Us
    </a>
  </li>
</ul>
              
            
!

CSS

              
                /*
Setting Body background to black
*/
body {
  background-color: black;
}
/*
Removing text decoration of anchor tags
And setting the text color to white
*/
a {
  text-decoration: none;
  color: white;
}
/*
Setting the Unordered list style to none
Moving the list by setting margin 50px from top
Also setting the position relative
*/
ul {
  list-style: none;
  margin: 50px auto;
  position: relative;
}
/*
Setting position to relative
*/
ul * {
  position: relative;
}
/*
Styling list element by setting:
width to 150px
height to 2em
padding to 0.5em so text not touch the border
background to dark orange
display style to block
text color to white
*/
li {
  width: 150px;
  height: 2em;
  padding: 0.5em;
  background: darkorange;
  display: block;
  color: white;
}
/*
Styling the ::after pseudo element by setting:
content to blank
heigth to 100% of list element
left to zero and top to zero
width to 0px 
z-index to 89, you can use any higher value to ensure it appears on top
border bottom to 2p white color solid 
text color to white
position to absolute
transition for animating it for 0.5 sec with ease effect
*/
li::after {
  content: "";
  height: 100%;
  left: 0;
  top: 0;
  width: 0px;
  z-index: 89;
  border-bottom: 2px solid white;
  text-color: white;
  position: absolute;
  transition: all 0.5s ease 0s;
  -webkit-transition: all 0.5s ease 0s;
}
/*
Styling the hover pseudo class ::after element by setting
width to 100% will animate from width 0px to 100%
border bottom of 2px white color solid
text color to white
z-index to 89 so that it remains at the top of all other elements
*/

li:hover::after {
  width: 100%;
  border-bottom: 2px solid white;
  text-color: white;
  z-index: 89;
}
              
            
!

JS

              
                
              
            
!
999px

Console