Forum Moderators: open

Message Too Old, No Replies

Safari bug with table height

         

markus markus

2:36 pm on Mar 1, 2007 (gmt 0)

10+ Year Member



Hi
I am new to this, but I have a problem that I have struggled with for quite a long time now, and I wanted to try this forum for help. The problem is I have a absolute positioned table with a one pixel border around it. Safari reports the height of the table to be 4 pixels to much!

I have made a simple example to show my problem:
<table id="topnprotocolswindow" cellpadding="0" cellspacing="0" style="position:absolute; left:10px; top: 360px; z-index: 1; width: 100px; height: 4px; border: 1px black solid;">
</table>

Safari reports the height of this table to be 8 pixels. FF reports 4 as it should be. Removing the absolutely positioning or the border will fix the problem, but I need them both!

Any help would be very appreciated!

Regards
Markus

JAB Creations

7:16 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd recommend removing margin and padding separately just in case. It could be a rendering bug however and the webkit rendering engine isn't really as great as the KHTML it spun off from (in my pro-standards stance/opinion).

- John