>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 35 << | Prev | Next | Index | Contents

The font-size property can have relative values larger and smaller.These values are interpreted relative to the table of font sizes and the font size of the parent element.

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <x-large>x-large
               <larger>larger</larger>
               <smaller>smaller</smaller>
          </x-large>
          <x-small>x-small
               <larger>larger</larger>
               <smaller>smaller</smaller>
          </x-small>
     </AAA>

x-large {font-size: x-large}
x-small {font-size: x-small}
larger {font-size:larger}
smaller {font-size:smaller}
View output