In article <95ne75$[EMAIL PROTECTED]>, "Ethan King" <[EMAIL PROTECTED]> wrote:
>I was trying to make a cell in a table 1 pixel tall by using a method like
>this:
>
><table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td bgcolor="#CCCCCC"><img src="images/spacer.gif" width="100"
>height="1"></td>
> </tr>
></table>
>
>When I don't put in doctype declaration statement at the beginning of my
>page mozilla makes the cell 1 pixel tall as I expected but when I do put in
>a doctype declaration the cell is as tall as it would be if there were text
>in it. After reading another post on this newsgroup about a simmilar
>situation I am wondering which is the correct way that this is supposed to
>be rendered. I would like to make my site as standards complient as
>possible but I would really like to have a cell that is 1 pixel tall. I am
>assuming that there is a good reason for the difference I just don't know
>how to make it look the way I want.
Couldn't you achieve this in a cleaner way by doing something like:
<tr><td style="border-bottom: 1px solid #cccccc">
on the <td> above the seperator? That'd be the most standards complient way to
do it.
ian.
\ /
(@_@) http://www.eclipse.co.uk/sweetdespise/ (dark literature)
/(&)\ http://www.eclipse.co.uk/sweetdespise/libertycaptions/ (art)
| |