View Full Version : table problems!
neoserenity333
08-13-2003, 05:30 AM
*sigh*
does anyone know the best coding to make SOME cells of a table stay a fixed size (content allowing) and yet other parts will be flexible due to different browser sizes? Should I put the height and width tags in the tr or td tag?
thanks so much!
MotherNatrsSon
08-13-2003, 05:50 AM
I would say the neither tag. If you set the <table> width to 100% and allow each <td> to take it's size by the content, you would have a <tr> that would collapse to the cumulative size of the content in the <td> tags and expand past them when it can???
MNS
neoserenity333
08-13-2003, 03:49 PM
so I set the heights to be absolute in my table tags and it still stretches the cells out....???????
!here's my simple table (http://www15.brinkster.com/threes/shamoo/test.html)
I am so confused as to why it's doing this.
The images contained in these cells are exactly the size of the specified cell and row dimensions.
Thank you in advance for any help
Well, a table will strectch if you stuff it but I don't see where the problem is. Which cell or row is it that's bigger than you want?
neoserenity333
08-13-2003, 04:18 PM
the top whole entire navigation section is stretched...it's the nested table within the general table.
the green space is what I'm trying to get rid of. that's the background showing through because the cells end up being stretched vertically even though I specified the heights to be exactly what the image heights are. :(
this is quite frustrating. I have no idea what i'm doing wrong. thanks for any input.
OK, like thin green lines? I see that in IE5 but not in Moz. Without looking too closely, I guess it's a matter of images, tables and whitespace in the HTML. Try removing whitepace from your table cell code.
Write each TD on a single line like so:
<td><img></td>
NOT like so:
<td>
<img>
<td>
Give that a try. ;-)
MotherNatrsSon
08-13-2003, 06:48 PM
Do the single line thing and change this line of code for the beginning of the nested table:
<table height="180" bgcolor=" BORDER="2 bgcolor="#000000" CELLSPACING="0" CELLPADDING="0">
Remove the extra bgcolor and the BORDER="2 either needs to go or a complete set of quotes.
MNS
Missing quotes, and duplicated attributes noted, but also run your site through http://validator.w3.org/detailed.html in case there are any other problems lurking.
neoserenity333
08-13-2003, 09:58 PM
:D thank you for your input. i got my problem fixed.
it was the one-line coding thing. wow, html sure is sensitive. haha :p or...I'm just stupid, but either case, thank you!
No, not stupid at all. Whitespace shouldn't matter. It's just that under some circumstances and with some browsers it does. Images in tables is a classic.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.