tables question
- Started
- Last post
- 6 Responses
- lovaboy
This should be an easy one for all you pros out there. If I've got a page that's a big table with three cells, and I want to center the middle td and make the outside two stretch to fill the rest of the space, what's the best way to do that that'll work in both IE and NN? Do I set the width of the outside two to 100% and fill them with transparent gifs set to 100%? That's what I thought but it doesn't seem to work. Help please!
- qaddisin0
you make the table width 100%
- spiff0
Okay, First of all, If you want the table to go completely across the page with no margins, you have to add these attributes to your body tag:
topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"Now, as for the table, add:
width="100%"
In the starting table tag. The finished code should look something like:your title
left column
middle column
right columnyou can also make the columns different widths like so:
your title
left column
middle column
right columnHope that helps you! Good luck.
- spiff0
oh damn newstoday takes out the tags... shit..
- spiff0
i'll get back to it in the morning im tired right now.
- BonSeff0
if i understand you right, just give the center td a pixel width and dont give any to the left and right. like so
http://www.chorizoapproved.com/n…
- ********0
...