Posted by Jim Moe on 04/15/06 22:25
meltedown wrote:
> here is the problem broken down to a simple example:
> http://reenie.org/test/test26.php
>
> There is a blue table you must scroll down to.
>
There is no blue table. There is no scroll bar.
> The table has cellspacing of 1 with a div for a background to make
> single pixel cell borders. As you can see, the right hand of the table
> has a 2 pixel border in firefox.
>
> The thick border only shows up when there is a scroll bar.
>
> Is there any way around this ?
Not really. This is a bizarre little defect in FF (the gecko engine), an
off-by-one error caused, no doubt, by rounding to integer values. As the
viewport width is changed, that border changes size as well.
Your method to get such a border is rather unusual. Most people would
use the "border" property to define a border:
table {
border-collapse: collapse;
border-top: 1px solid blue;
border-right: 1px solid blue;
}
td {
background:white;
border-left: 1px solid blue;
border-bottom: 1px solid blue;
}
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
[Back to original message]
|