Forum Moderators: not2easy

Message Too Old, No Replies

100% Tables

Table width falling short

         

monolift

6:05 pm on Aug 13, 2004 (gmt 0)

10+ Year Member



I have a site with a table that is supposed fill the width of the screen. However, when I access the site there is a gap on the right of about 15 pixels or so.

When I refresh the site, it sizes to the full screen width.

Any suggestions?

chrisnrae

7:00 pm on Aug 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you set the cellpadding and cellspacing to 0? You can also define the margin sizes, but I am not sure that it works in all browser types.

monolift

10:11 pm on Aug 13, 2004 (gmt 0)

10+ Year Member



Yes, everything is set to zero. It works fine when I click refresh, but for some reason on the first load, the table stops short.

Span

10:21 pm on Aug 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using leftmargin, topmargin, margin-left and margin-top in your body tag? If I remember well try adding margin-right="0".
Or use CSS:

body {
margin:0;
padding:0;
}

chrisnrae

2:51 am on Aug 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yea, adding the margins to your body tag will do it, but as a warning, whenever I validate a site that has them adding to the body tag, I get validation errors saying that that code may have problems in certain browsers. I don't know much CSS, so maybe that works better. Just an FYI. ;)