Grow your CSS skills. Land your dream job.

How to create drop down menu with table, td, td.

  • # February 5, 2009 at 3:38 am

    How to create drop down menu with table, td, td.

    i have to do this for this sitehttp://www.joannefabrics.com/english/products.asp

    it’s table based site ,navigation bar made by table.

    pls help ASAP

    Rob
    # February 5, 2009 at 3:53 am

    firstly I wouldnt use the table – I would use a UL.

    Is it for the navigation? Coz you can get some good free CSS menu templates for free… here is a good tutorial.

    http://www.seoconsultants.com/css/menus/tutorial/

    # February 5, 2009 at 5:41 am

    i know very well how to make menu with css and ul li . but this clients only needs to add a submenu. so i want to know how we can make a dropdown menu with table, tr, td and images

    Code:

    this is the code of menu. there is no sub-menu yet. i want to add a sub-menu in any link.

    is there any solution with javascript or something else ?

    if there is no solution then i will recreat the whole in css, ul,li

    # February 5, 2009 at 1:12 pm

    If you know very well how to make it with ul / li, then why wouldn’t you? I see absolutely no benefit to using a table for this.

    # February 5, 2009 at 11:26 pm

    because i don’t want to recreate the menu. because it’s a huge site with many pages and client just need a 1 submenu in the main menu . this is a little work for me and i don’t want to waste much time on that. i need a quick solution

    This is navigation
    [img]http://farm4.static.flickr.com/3532/3257456250_65b5814eb4_o.png[/img]

    This is the code of navigation made by table

    Code:

    I want this . i want to show a sub-menu under products menu item anyhow except converting into any css menu
    [img]http://farm4.static.flickr.com/3490/3257451450_365eed7a9b_o.jpg[/img]

    Please help ASAP

    # November 12, 2009 at 11:08 pm

    I am also looking to add a submenu only to an existing menu for main page at tier1ip.com. Did you ever figure out a solution to this? I’m using basic html with js.

    # November 13, 2009 at 5:01 pm

    What I would try doing is this.

    The <td> that holds the link you want to be a dropdown give it an ID or class of "dropdown"

    Next add an UL inside the td tag
    <td class="dropdown">
    <a>Main Link</a>

    <ul>
    <li>link 1</li>
    <li>link 2</li>
    <li>link 3</li>
    </ul>

    </td>

    /* CSS /*
    .dropdown ul {display:none}
    .dropdown:hover ul {display:block;}

    From there on you will need to position your UL using relative positioning. Also you will need a fix for IE6 because it doesn’t like :hovers except on a tags. But there are workarounds like http://www.xs4all.nl/~peterned/csshover.html

    I hope this helps. If not. You could always use javascript to throw something up on hover.

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

You must be logged in to reply to this topic.

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