Results 1 to 4 of 4

Thread: How to make table drop down menu

  1. #1
    Join Date
    Jun 2009
    Posts
    4,586

    How to make table drop down menu

    How to create a drop down menu in table for HTML website. I assume there must be some additional configuration that must be done to tell the menu to appear within the Table ? Please let me know how I need my code modified to get this to work. Please help me.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: How to make table drop down menu

    You can get simple drop-down menus to find horizontally across the top of a page, those with complex sub menus drape, some of which graph to use mouse over effects, and others establish vertically along the left side or the right of any page compilation.The drop-down menu is created by using a table. The menu table is relatively simple. Here is the HTML Code for the Simple Drop-Down Menu:

    <table class="navbar" width="800">
    <tr>
    ...[missing TD elements]
    </tr>
    </table>

    The width attribute for each TD element is placed at 160 pixels, which each menu 20 percent of the total width of the list created. If you add or remove menus or the width of the list changes, the width of each individual menu in the Customize list. For example, if you have any of the columns in the example removes so you have four columns, the width of each menu 200 pixel for a pixel-wide menu 800.

    If you add a menu so you have six, the width about 133 pixel, etc. Each drop-down menu is contained within an element of sections within each top-level TD element is nested. Within the element of sections, the code for each drop-down menu contains a nested element of the list. The list of the 3 shows gene afd suggested - and the drop-down menu list.

    <div class="menuNormal" width="155">
    <table class="menu" width="155">
    ...[missing TR elements]
    </table>
    </div>

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to make table drop down menu

    The DIV element has an id attribute value so that the JavaScript code can access the child elements.The element has a value of ID attribute so that the JavaScript code to the child elements can have access. This was necessary to allow everyone to whom this code could use markings on the page elsewhere without mixing in the spread is / functions JavaScript does collapse.The nested DIV element for the drop-down menu has a class attribute value of "menuNormal" and a width attribute value of "155." The nested TABLE element has a class attribute value of "menu" and a width attribute value of "155."

    Each item in the drop-down menu comprises a TR element that contains a single TD element. Listing 4 shows the TR and TD elements for a drop-down menu line item.
    <tr>
    <td class="menuNormal">
    <a href="page.htm" class="menuitem">Item 1</a>
    </td>
    </tr>

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: How to make table drop down menu

    The class attribute specifies the CSS style that defines the appearance of cells list when a user first page shows. The width attribute is placed at 20% so that each of the five drop-down menus of the same area will be. Again, this is an easy thing to change if you want to change the code to your own needs. The id attribute is necessary as the scripts use these to access the TD element.

Similar Threads

  1. How to add drop-down menu in Word ?
    By Japheth in forum Windows Software
    Replies: 21
    Last Post: 19-01-2013, 02:29 AM
  2. Link a Table to another Table to Drop Down In Main Table
    By himeshRES in forum Windows Software
    Replies: 6
    Last Post: 11-12-2010, 02:01 PM
  3. How to make graphic buttons into drop down menu links?
    By Constantinee in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 09:58 PM
  4. How to drop a table if exists in a SQL Script CE
    By B_Hodge in forum Software Development
    Replies: 2
    Last Post: 09-06-2009, 11:43 PM
  5. ListBox Drop down menu in vb.net
    By SamsherR in forum Software Development
    Replies: 3
    Last Post: 16-02-2009, 04:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,464,993.31082 seconds with 16 queries