Grow your CSS skills. Land your dream job.

Menus

  • # July 28, 2008 at 10:46 pm

    Hi, I am using two divs to create a menu navigation system, with sub menus. The main horizontal menu is named "main" while the sub menu is named "sub". All data for the sub menu will be appended to the html for the sub menu. How is it possible for me to align different sub menu(s) based on the position of the element in the associated main menu? Can I get the position of the main menu and align it to the sub menu? :lol:

    # July 29, 2008 at 4:49 pm

    I think when you "append" the sub menu to the HTML, you should do it inside the original menu item. That way the original menu item will just expand vertically to fit the sub menu and it will be "aligned". This example is starting to age a bit and I see a little bug in FF3, but the concept is there:
    http://css-tricks.com/examples/DiggHeader/#

    # July 29, 2008 at 10:56 pm

    How do I set a fixed width and height for the main menu? Is it possible to center the main menu to the center of a page, irregardless of the browser size? :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".