Can you answer me some questions, if it's not too much work.

Why we have to change from pixel to em measure units? It's more browser
friendly or W3C friendly?
It's only for height values?

We should use line-height instead of what? Why do we have to use line-height
and height, all together?


If it's fast and easy for you, answer me back please, If not, I will dig in
a little on gooracle. :)



Regards,
Márcio


 


-----Original Message-----
From: Gunlaug Sørtun [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 3 de Novembro de 2008 14:46
To: MEM
Cc: [email protected]
Subject: Re: [css-d] The 1 px terror - Help.

MEM wrote:

> Now I have a pixel problem!!! Or a math problem. I don't know yet.

> http://www.cantinho.org/test3.html

At the moment all browsers fall back on their defaults for line-height,
and they are different - even between versions of the same browser.

Tell all browsers exactly what you want, and they'll do it for you.
Not a single "conditional" or other browser-specific solutions needed.

Go through your styles and add/modify _only_ the following...

.linksprincipais#navigation {
height: 1.7em; <-- change to this
}

.linksprincipais#navigation ul li a {
padding: 0 10px; <-- change to this
height: 1.7em; <-- add this
line-height: 1.7; <-- add this
}

.linksprincipais#navigation ul li a:hover {
padding-bottom : 4px; <--- delete this
}

...and the entire range of browsers you have, or don't have, problems
with will get the message, and line up your navigation in accordance
with your wishes.

You can modify the height/line-height on those elements if you wish, but
you have to make sure they all have the same value and that that value
is large enough.
Also: avoid values that you see introduce rounding-differences in your
range of browsers.

regards
        Georg
-- 
http://www.gunlaug.no

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to