CSS font size.
CSS font size.
- Started
- Last post
- 7 Responses
- eegrek
What's the best way to size my fonts in CSS. Using px sucks cuz it looks huge on a PC and tiny on my mac.
- van_rijn0
rock a sep style sheet for the pee cee people
- 7point340
well fuck off then... haha, i use px for everything... i hate ems
- acescence0
default font size for most browsers is 16px, so set the body to 100%, and then make everything relative to that using em and inheritance. px are lame and limit accessibility.
- Sherbit0
set your font size in the body to
font-size:62.5%;then it works out roughly lik this
10px - 1em
11px - 1.1em
14px - 1.4em
etcnote tho that these sizes are relative so if you set the font size on a div then place an h1 inside of it the sizes will combine for massive results :)