I in the process of learning CSS and have found an interesting compatibility conflict.
Here's some of the code:
If you view this address:Code:img.firstBar { position: absolute; left: 10px; top: 51px; height: 25px; width: 267px; } div.secondBar { position: absolute; background-color: #0033ff; font-family: Arial; color: #ffffff; text-align: center; left: 277px; top: 51px; height: 25px; width: 120px; padding-top: 4px; }
http://www.appointit.com/appointmentscss.htm
in IE 6 (I don't know about earlier versions) it looks fine. However, if you view this page in NS 7, and Opera 7, the DIV tag is displayed as about 4px taller than what is defined, and the IMG tag is displayed correctly.
If I change the DIV definition to, height: 21px; it displays fine in the last two, but not IE.
Is there anyone who can shed some light on this, and how to write such definitions for cross browser compatibility?
Thanks.








Bookmarks