On 12 Feb 2010, Mc Lauren Series <> wrote:
> I have this CSS:
>
> .one {
> font: normal normal 100% Verdana, Arial, Sans-serif;
> font-size: small;
> }
> .two {
> font: normal normal 100% Verdana, Arial, Sans-serif;
> }
>
> which is applied on this HTML:
>
> <body>
> <div class="one">
> Foo
> <div class="two">
> Foo
> </div>
> Foo
> </div>
> </body>
>
> However, I see that all the three "Foo" strings appear to be of the
> 'small' size. I was expecting the second one to be of 100% size since
> the "two" class overrides the small size of "one" class to make it
> "100%" size. Is my expectation incorrect?
The second one *is* 100% of "small" which is the parent font-size.
Look at it this way: if you have a box in a box and a picture of Highly
Silasy in the inner box which is 100% the size of it's container, is
the image as big as the first box or as big as the second?
--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/