Quick Nav:  Online Store   |   Login | Register

Set me straight

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Sam Tanner
<20 Posts
Posts:3


03/19/2007 9:35 PM  
Hi John,

I've finally had some time to look at the CSS NavMenu, and need a little kick in the right direction. Using version 2.0.0 skinObject, in a horizontal layout and trying for something pretty simple to expand upon later.

Three problems right now:
The submenu items drop down, but disappear again before you can click one!
The fifth (last) root menu item is a smaller font size than the others.
Under each root menu item, the first submenu item background is wider than all the rest.

I know there's a lot of redundancy in the CSS, I've been experimenting and it's not very clean now.

I would really appreciate a little bit of help understanding the concepts here, I've Googled on styling unordered lists but the articles don't quite strike home for me somehow, especially when it comes to the submenus and sub-submenus.  For instance, why does #nav li ul get styled left: -999em?

Thanks very much,
Sam T.


Here's my .ascx code:





John Mitchell
Posts:3478


03/20/2007 10:46 PM  

Hi Sam,

The Hover type menu is best described here:  Son Of Suckerfish

The -999em is for moving the child menus off-screen until they are hovered over at which time they are just positioned to be on screen.

I don't recommend switching between fixed pixels and em units.  em units make your code accessible (allows users to resize fonts on their browser).

The reason it may be display the flyout but not letting you move to it is because there is probably a gap between the parent and child item.

the Line-Height in the first UL should match the top in the hover rule (you have 25px on line height and 1.6em on the top for hover).

Your other issues are probably just from using mixed em's and px's also.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software