Hi,
I want to use relative size instead of fixed size. I want to use em.
My CSS is:
body{
font:10px;
}
#wrap {
font:1.2em;
}
#wrap ul li {
padding-left:2em;
}
What is value of the li
's padding in px? I would have guessed it's 2.0*10 = 20px, but it looks like it's taking 1em = 12px, I mean it taking it parent size.
I would like for it to take 1x the parent fontsize in px (that means font-size of body
not wrap
).
I appreciate your suggestions.