SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    leftMenu on the left-most, rightMenu on the right-most

    Code:
    <table cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td width="100" bgcolor="yellow" align="center"> <a href="leftMenu.htm">leftMenu</a></td> 
        <td width="*%"> </td> 
        <td width="100" bgcolor="pink" align="center"> <a href="rightMenu.htm">rightMenu</a></td>  
      </tr>
    </table>
    The above code will show 2 links, i.e. leftMenu and rightMenu.

    Keeping the width "100px,"
    I like to put the link "leftMenu" at the left most, and the link "rightMenu" at the right most regardless of any resolution.

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Brunei
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd actually suggest using CSS but if you want to stick with tables:

    1. In your <table> tag, add width="100%"
    Code:
      <table .... width="100%">
    2. For the <td> containing the menus, I suggest you specify the width in pixels:
    Code:
      <td width="100px" ...>
    3. For the middle <td>, you can drop the % sign but add a non-breaking space between the tags:
    Code:
      <td width="*">&nbsp</td>
    Works in Firefox/Mac, should work on other browers.

  3. #3
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's it, pocketsized. Thanks.


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
  •