CodePen

HTML

            
              <div class="wrapper">
  <!--trail1div-->
  <div class="trail1div">
     <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Dropdown</a>
      <div class="drop">
    <ul>
       <li>
        <a href="#">Hello</a>
      </li>
      <li>
        <a href="#">Albatross</a>
      </li>
       <li>
        <a href="#">Iron </a>
      </li>
         
        </ul>
          </div>
       </li>
        <li><a href="#">Products &amp; Services</a></li>
        <li><a href="#">News &amp; Events</a></li>
     </ul>
    
   
  </div>
   <!--trail1div-->
</div>
            
          
!
via HTML Inspector

CSS

            
              
.wrapper{width:980px; margin:0 auto; font-family:arial; font-size:11px; color:#000; text-align:left;}
.trail1div{margin:0 0 20px 0;}
.trail1div ul{margin:0; padding:0; display:block; list-style:none; background:#272822; }
.trail1div ul li{float:left; display:block; border-right:1px solid #0c0c0a; position:relative;}
.trail1div ul li a{display:block; padding:10px 25px; font-family:Arial; font-size:12px; color:#fff; text-align:left; outline:none; text-decoration:none; border-right:1px solid #31332b;}
.trail1div ul li:hover{background:#3b3d34;}
/*my trial */
.trail1div ul:after {
      clear: both;
      content: '';
      display: block;
  }

.trail1div:after {
      clear: both;
      content: '';
      display: block;
  }

/* sub nav - I always first negate the values of the parent, while working on the child elements */
.drop{position:absolute; top:auto; left:0; height:auto; width:400px;} /* this width will be the width/area widthin which if the mouse is present, the dropdown wil be visible. If the content is lesser the ul will resize accordingly, but willl not exceeed in length beyond this max width  */
.trail1div ul li ul{margin:0; padding:0; display:none; list-style:none; background:#272822; float:left;}
.trail1div ul li ul li{float:none; display:block; border-bottom:1px solid #31332b; border-right:none;}
.trail1div ul li .drop ul li a{border-bottom:1px solid #0c0c0a; border-right:none;}

/* shows dropdown */

.trail1div ul li:hover ul{display:block;}


            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................