Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts

    CSS driven popup menu

    Hi, it's me, AGAIN.

    I'm still trying to get a good, semantic layout going, as I know what it really means now. (see my eariler post: why the gaps?)

    This time, I'm wondering what a good way to have a CSS nav menu that "pops down" with a sub menu. If you dont know what I mean, go to robowhizards.com/examples/cf and mouseover the menu. I was told that having a JS menu was not a good idea. (once again, see the earlier post)
    I have links like this:

    Code:
    a.menu
    {
    font-family:Arial, Helvetica, sans-serif;
    font-size:10pt;
    color:#FFFF00;
    text-decoration:none;
    background:#000066;
    }
    
    a.menu:hover
    {
    font-family:Arial, Helvetica, sans-serif;
    font-size:10pt;
    color:#000066;
    text-decoration:none;
    background:#FFFF00;
    }
    If I made a span, could I use the visibility:hidden attribute to make iut show up when the user mouses over the link?

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Try this article. It might be a bit much to start from, but after you're done you'll feel like an html genius.

  • #3
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts

    Smile

    wow. this is awesome (problem resolved)

    Thanx

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •