• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Fonts > Percentages as Values

Percentages as Values

Many properties that accept a number or a length as a value also accept a percentage, such as 50%, 33.3%, and 100%. Although not a unit of measure, percentages offer similar advantages that relative units do; that is, they automatically scale.

What the percentage is a percentage of – that is, what it is relative to – depends on the property. Usually, it is a percentage of the value that the property has in the parent element. For example, an H1 with a font size of 80% means the font is 80 percent of the font size of its parent (often, the BODY element).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint