Help with simple HTML table formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all

I'd like to set up a master table behind my page, with room for a single-row header at the top, and another single column down the left. I'd like each of these to always grow/shrink with the browser. When the code below runs, you see a small break between the top row and the left column (i.e. the "red" is not contiguous), which I presume is a pixel or two set aside to separate table cells, regardless of the "no border"

Two questions
1) Any way to get rid of this break
2) Any generic way to eliminate the margin between this table and the top/left client area of the browser itself? I know there's margintop and marginleft in the body, but I believe these are IE-specific

<table width="100%" height="100%" border="0"><tr height="100" bgcolor="red"><td colspan="2">Header Stuff</td></tr><tr><td width="15" bgcolor="red"></td><td>Body Stuff</td></tr></table

Any thoughts on how to do this or something better are appreciated. I'm hoping not to have to do it with bg images

Thanks

Bil
 
look at cellpadding, cellspacing and margins.

-- bruce (sqlwork.com)


Bill Borg said:
Hello all,

I'd like to set up a master table behind my page, with room for a
single-row header at the top, and another single column down the left. I'd
like each of these to always grow/shrink with the browser. When the code
below runs, you see a small break between the top row and the left column
(i.e. the "red" is not contiguous), which I presume is a pixel or two set
aside to separate table cells, regardless of the "no border".
Two questions:
1) Any way to get rid of this break?
2) Any generic way to eliminate the margin between this table and the
top/left client area of the browser itself? I know there's margintop and
marginleft in the body, but I believe these are IE-specific.
<table width="100%" height="100%" border="0"><tr height="100"
bgcolor="red"> said:
Any thoughts on how to do this or something better are appreciated. I'm
hoping not to have to do it with bg images.
 
I sure thought I had done cellspacing, but that's what it was. Thanks for the fast help

----- bruce barker wrote: ----

look at cellpadding, cellspacing and margins

-- bruce (sqlwork.com


Bill Borg said:
Hello all
single-row header at the top, and another single column down the left. I'
like each of these to always grow/shrink with the browser. When the cod
below runs, you see a small break between the top row and the left colum
(i.e. the "red" is not contiguous), which I presume is a pixel or two se
aside to separate table cells, regardless of the "no border"
1) Any way to get rid of this break
2) Any generic way to eliminate the margin between this table and th
top/left client area of the browser itself? I know there's margintop an
marginleft in the body, but I believe these are IE-specificbgcolor="red"><td colspan="2">Header Stuff</td></tr><tr><td width="15
 
Back
Top