2013-02-22 21:55, Angela French wrote:

Could someone please explain the "small" in the example below:

h1 small {
   font-size: 24.5px;
}

I would understand h1.small,  but am confused by the syntax "h1 small"

The selector "h1 small" matches any <small> element nested inside an <h1> element. A reasonable use case:

<h1>On the Origin of Species<br>
<small>by Means of Natural Selection</small></h1>

That is, you might wish to have some line(s) of a heading in a smaller font size (smaller than the rest of the heading). Many people would tell you to use <span class=small> or something similar, but that's a different story.

What puzzles me more is 24.5px. Apart from the issue whether it is a good ideas to size fonts in pixels, the question arises why one would use fractions of a pixel, in 24.5px, which might get rounded to 24px or 25px (or dealt with in some other way).

Yucca



______________________________________________________________________
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