Safari line height problem

JUN

14

2006

It seems like I've been stuck on the line-height property lately. Well, today I noticed Safari giving weird behavior with regards to line-height. In the CSS documents we create at work, we always include a standard set of entity styles at the top and then go back and edit them if needed. Well, in that standard set is where we define the font-size, line-height, padding, etc. for our most-used html tags. I ran into a problem today where Safari was effectively ignoring the previously declared line-height property when I redefined the font-size of an element. So, to fix this, I had to re-define the exact same line-height(in percentage) for the new font-size.

I'm a huge fan of the Mac (I use one at work), but Safari can cause some headaches (nowhere near IE, though).

Tagged: safari, css, xhtml


Andrei Eftimie said on September 25, 2007:

i'm having a similar problem. Safari won't recognise the line-height property. The difference is that the property is on the element defined (and in em)... its weird

Leave a comment:




© 2008 Travis Roberts. All rights reserved.