
Originally Posted by
Girard Ibanez
2) What size does a <h1>, <h2> small , xx-small, large ...etc equated to in percentage?
percentages are dependant on the browser, and IE / Fx for instance render pixel's differently. When you are designing a site, em are recommended to be used for width (margin / padding) and pt is recommended to be used if you are going to explicitly declare font-size.
Also, if you decide to go to the "word" way, you also need to know that IE renders +1 size over Fx, so
Code:
body {
font-size: small;
}
in Fx would not be rendered the same size IE. You need to do the "Box Model Hack" that will trick IE into rendering it how you meant the font to display.
Personally I explicitly declare a size in the body, then use percentages from there.
Code:
body - small (Fx . Standard Compliant)
- x-small (IE)
h1 - 150%
h2 - 120%
h3 - 110%
h4 - 90%
h5 - 80%
h6 - 65%
and I use the same principles for my other declarations, thus if I ever wanted to change the default font size I just need to change the body, and I will not need to worry about the proportions from then on.
Bookmarks