View Full Version : Tables - size problem
mysterio2099
07-15-2005, 11:22 AM
quick and simple:
My tables a raping me. This is a simple corrected problem, but I still need help. When I do height="--" and width="--" the page decides to tell me, "Go die, I'm not doing it." If I put height="5" on a <td> tag, it will use height="100%" instead and fill the entire table.
How do I stop the raping guys? ...how do I make the pain go away? :(
kram 2.0
07-15-2005, 01:13 PM
Let me start off by asking for the entire code. Are you using a WYSIWYG Program and writing HTML from there, or are you using a Notepad-like application?
kram
mysterio2099
07-15-2005, 02:38 PM
I'm using Dreamweaver.
This is an example of the code. This might come out fine, but if I'm going one TD at a time to test, it doesn't work..the TDs get stretched full table wise.
<table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="300"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>
kram 2.0
07-15-2005, 02:48 PM
I'm using Dreamweaver.
This is an example of the code. This might come out fine, but if I'm going one TD at a time to test, it doesn't work..the TDs get stretched full table wise.
<table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="300"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>Your TDs need to fill the entire space allotted by the Table parameter. In other words, if your deleted the second TD (the height 300 pixels one), the first and third TD need to fill that space. <table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>95% of the 400 pixels will be filled by the second TD. 5% of the 400 pixels will be filled by the first TD.
I hope I answered your question here.
kram
mysterio2099
07-15-2005, 03:00 PM
It told me I can't do what I want :cool: but that's cool. I'll work around it. Thanks man.
kram 2.0
07-15-2005, 03:07 PM
It told me I can't do what I want :cool: but that's cool. I'll work around it. Thanks man.
There's always an option of creating that extra TD and doing nothing with it - that's the technique commonly used when you have a Table you'd like to extend but don't want to fill a TD.
kram
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.