Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Could you please explain me or send me a link where is explained how does CSS property font-size work?
When you're working with relatives sizes in %. It's the percent of what? What are best practices etc.

thank you

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The best place to go is where CSS is defined - http://www.w3.org/TR/CSS2/fonts.html#font-shorthand. To answer the % question - it's the percentage of the font size of the parent element.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.