The original code
/* THIS IS A COMMENT IN CSS */ /* !-- ================== Drop Down Navigation Bar ================== --> */ /* !-- Fix to the top of the screen --> */ nav.test_drop_down_menu { /* position: fixed; top: 0; left: 0; */ width: 100%; margin: 0; text-align: center; background: black; padding: 0; border-bottom: 3px solid white; } /* !-- Make the sub menus disappear --> */ nav.test_drop_down_menu ul ul { display: none; } /* !-- Sub menu of parent element reapear on HOVER --> */ nav.test_drop_down_menu ul li:hover > ul { display: block; } /* !-- Formating the Main navigation elements ( < ul> ) --> */ nav.test_drop_down_menu ul { position: relative; display: inline-table; list-style: none; } nav.test_drop_down_menu > ul { width:100%; margin: 0; padding: 0; } nav.test_drop_down_menu > ul > li { width: 16.666666666667%; } nav.test_drop_down_menu ul:after { content: ""; clear: both; display: block; } /* !-- aligns < li> elements horizontally --> */ nav.test_drop_down_menu ul li { float: left; } /*nav.test_drop_down_menu ul li a { display: inline; }*/ /* !-- Formating of Hover elements --> */ nav.test_drop_down_menu ul li:hover > a { background: #343434; color: yellow; } /* !-- Formating main menu link elements--> */ nav.test_drop_down_menu ul li a { display: block; padding: 0 10px; color: white; text-decoration: none; width: 100%; } /* !-- Formating the dropdown element of the menu --> */ nav.test_drop_down_menu ul ul { /* keeps from expanding changing the main >nav> element */ position: absolute; top: 100%; } nav.test_drop_down_menu ul ul li { float: none; /* Change alignment from horizontal to vertical */ text-align:left; margin-left: -30px; /* move drop down left or right */ background: #343434; } nav.test_drop_down_menu ul ul li a { padding: 5px; color: white; } nav.test_drop_down_menu ul ul li a:hover {} /* !-- Make 3rd lvl menus move to the side --> */ /*!-- nav.test_drop_down_menu ul ul ul { position: absolute; left: 100%; top:0; } -->*/ /* !-- ================ End Drop Down Navigation Bar ================ --> */