Web Hosting Talk







View Full Version : How to resize a cell by specifying its height?


Onture
10-30-2002, 04:24 PM
I need to resize the height of a cell to 5 pixels. At the moment I'm achieving this by inserting a picture based on 5 pixels, then set the background of the cell to the same picture based on 5 pixels.

Any other clean ways?

Studio64
10-30-2002, 04:54 PM
<td height="5">

Onture
10-30-2002, 05:02 PM
Originally posted by Studio64
<td height="5">

Thats the first thing I did. That won't work. It still list it as default size.

<table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" background="pict01.gif">&nbsp;</td>
</tr>
</table>

Studio64
10-30-2002, 05:41 PM
All of the cells of the table would have to be of size 5 (or at least the row... I can't exactly remember)...

Post your code or try to explain exactly what your trying to do...

Onture
10-30-2002, 05:51 PM
Originally posted by Studio64
All of the cells of the table would have to be of size 5 (or at least the row... I can't exactly remember)...

Post your code or try to explain exactly what your trying to do...

At the moment, its looking like this;

http://www.vansign.net/demo1.jpg

I want it to look like this;

http://www.vansign.net/demo2.jpg

sasha
10-31-2002, 01:12 PM
Spacer image is perfectly fine way to do this, but if you want to try this it might work.

The problem is that space in the td, it is heigher then 5 , it is your font size


.tdtiny {
font-size: 1px
}

and then

<td height="5" class="tdtiny">&nbsp;</td>