SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict michaelwheaton's Avatar
    Join Date
    Jan 2001
    Location
    Alberta, Canada
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, everyone. For a site I am working on I would like to be able to have the left nav bar have an exact pixel width and the remaining table cell to fit the browser. I used:

    <tr>
    <td width="175">nav bar here</td>
    <td>page content here</td>
    </tr>

    However, I heard that you need some sort of a blank graphic in there or something to make it work on all browsers? Thanks for the help.

  2. #2
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't think that that's what you need, but what you must do is specify a width of 100% in your TABLE tag.

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I understand every part of your question except that blank image..

    for such a navigational bar,

    create a table with width 100%.
    then split the tbale into 2 parts vertically.
    the left would hold the navigational menu right?

    for that <td></td> tag,
    create a new table with specific width in pixels.
    center the table too.

    and you're done. =)

    the rest of the design, you odn't need to create additional tbales. do so within the current tbale with width 100%.

    note: the more tbales, the longer it takes to render/load and the more prone you get to being anti-netscape =)
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  4. #4
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you have any problems post a link to that web page and we shall have a look.

  5. #5
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know using the blank image does have some use... for my designer used them - I believe it is needed in Netscape. If you want to see how they are use in my case, just see my site in my signature.

    Just a note, I wouldn't recommend using percentages for like table widths because the widths in percents do not always look the same in different browsers.

  6. #6
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by M. James
    Just a note, I wouldn't recommend using percentages for like table widths because the widths in percents do not always look the same in different browsers.
    Hmm..Table widths in percentages or pixels always look the same in all the browsers.
    However, you must be precise in your specification of widths.

    If you use percentage, all your <td> tags in the row must add up to 100%
    same for pixels, they must add all up to the specified total width.


    TIP : use a calculator when settin goyur widths
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


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
  •