AudiDoDat
Members
-
Joined
-
Last visited
Reputation Activity
-
AudiDoDat reacted to mteam in Hover over sub menu#upper_links li ul a{font-size:15px;}
add to end of css should do the trick
-
AudiDoDat reacted to Alluziion in Hover over sub menuThat's fine, I'll try to guide you through step-by-step.
In order to make a "submenu" you need to add a list to your list item so that you've got a list within a list - listception
Like this...
<ul id="upper_links"> <li><a href="" class="active">Home</a></li> <li><a href="">Services</a> <ul> <li><a href="">Service 1</a></li> <li><a href="">Service 2</a></li> <li><a href="">Service 3</a></li> </ul> </li> <li><a href="">Products</a></li> <li><a href="">Offers</a></li> <li><a href="">Contact Us</a></li> </ul>
I've removed the <div> because it's not required.
Then in the CSS you need to style it, position it, hide it and when a parent <li> is hovered, the submenu will be displayed...
#upper_links { padding-left: 0px; list-style: none; padding: 0px 0px 0px 0px; margin-left: auto; margin-right: auto; width: 780px; position: relative; display: inline-table; } #upper_links li { float: left; } #upper_links li a { font: 20px Stencil; color: #FF0; font-weight: normal; text-decoration: none; text-align: center; display: block; float: left; width: 154px; height: 61px; line-height: 54px; } #upper_links li a:hover, #upper_links li .active { background: (images/active.png) center; } #upper_links li ul { display: none; position: absolute; top: 100%; } #upper_links li:hover > ul { display: block; } #upper_links li ul li { float: none; position: relative;
Hopefully this will help.
I have only changed what I needed to and you may have to recentre the nav because upon changing the display to inline-table it may offset it.
Hope this helps.
EDIT: If you want to know why I used certain styles then just ask