View Full Version : Ok, Table cells........Which width and height do I cut?


chrishawthorne
08-07-2003, 11:36 PM
Like the width and height, im going to cut the height and width, so The table cell will get big enough for my content by itseld...
Here is the code :

<td width="447" height="306" valign="top">
<table width="93%" height="116" border="1" align="center" bordercolor="#333333">
<tr>
<td height="23" bgcolor="#ff6600">
<div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>:.
Bloggin .:</strong></font></div></td>
</tr>
<tr>
<td height="54"><p> </p>
<p> </p <p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><center><img src="tiger2.bmp" width="349" height="338"></center>
</font></p>
<p> </p>
<p> </p></td>
</tr>
</table></td>

CryptalClear
08-07-2003, 11:39 PM
um, tables automatically expand to fit their content. also, you don't need that last </td> because you had already ended your table. I don't think you need to adjust anything with your width and height, simply because of the fact that tables expand on their own.

chrishawthorne
08-07-2003, 11:44 PM
Even if there is a div on top of it??

CryptalClear
08-07-2003, 11:49 PM
just make sure your div is the size you need, and the table will expand to fit it. I don't know why you need a div just for that one word, you could probably just delete the div tags, and add <center> right before the strong tag, and </center> between the </strong> and </font> tags....the table will still expand, because you have the image in it.

chrishawthorne
08-07-2003, 11:53 PM
I have a div layer positioned on top of that.....You dont see it there.

CryptalClear
08-07-2003, 11:59 PM
well, you could have just put the div with your book reviews info and stuff inside the cell, on top of the image. or use a div to position the image and use another div with the text, using the same positioning, only edit the z index stuff.....the higher the z index number, the more on-top it is.

CryptalClear
08-08-2003, 12:07 AM
sorry i missed the 5 minute edit time.......um, this was a double post Chris. The rules explicitly say no double posting. You should have just posted in your other thread where Dude128 answered you.

chrishawthorne
08-08-2003, 12:08 AM
I did! Then I waited a few hours, and I didnt get an answer

CryptalClear
08-08-2003, 12:11 AM
well, it's understandable that we're all busy......sorry if i was rude......but i hope that the tips i posted helped you...but just try the double div thing a few posts up

chrishawthorne
08-08-2003, 12:12 AM
ok , absolutely