SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: 100% table

  1. #1
    SitePoint Evangelist klik's Avatar
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    547
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    100% table

    Okay, I have a layout in a 3 column format. Please don't lecture me on using a CSS design like other forums where I've asked for a simple fix.

    On this page

    www.javablog.net/releases.php

    You can see on the left column that there is a small box at the bottom of this column. This small rectangle is meant to stetch to the very bottom but is only about 4 pixels high, despite height being set to %100.


    The code for this specific table is as follows

    Code:
    <table width="100%" border="0" cellspacing="1" cellpadding="3" height="100%">
                <tr> 
                  <td bgcolor="#E5E5E5">&nbsp;</td>
                </tr>
              </table>

  2. #2
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Give the <td> a 100% height also perhaps?

  3. #3
    SitePoint Evangelist klik's Avatar
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    547
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your attempt. Unfortunately no change.

  4. #4
    SitePoint Wizard bronze trophy conradical's Avatar
    Join Date
    Jan 2005
    Location
    Atlanta
    Posts
    2,355
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    If you are nesting a table within a td and giving that table a bg color, the bg color will expand with the content.

    Give the <td> in which the nested table is the background color instead.

  5. #5
    SitePoint Evangelist klik's Avatar
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    547
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure what you mean conradical. Could you adjust the code to reflect your suggestion? Or do I need to make more complex changes.

    Thanks.

    Edit : If you view the link again, it does now go all the way down but there is no border. I want the same border look as the right column, without using the bordercolor attribute.

  6. #6
    SitePoint Wizard bronze trophy conradical's Avatar
    Join Date
    Jan 2005
    Location
    Atlanta
    Posts
    2,355
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    If this is not urgent for you i can take a look at the code when i get home this evening, or even maybe my lunch break. Nested tables are a pain to look at in notepad!

    Fire it up in dreamweaver and it should be a breeze.

  7. #7
    SitePoint Evangelist klik's Avatar
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    547
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That would be great. Thanks! I'll PM you the file.


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
  •