Dodge
02-28-2005, 10:05 PM
Hi all,
I've been reading about css font sizing - from this read something have become a bit clearer but somethings remain a bit of a mystery. ;)
I've also peeked at a few source codes (of people's sites I think know what they are doing) to get a glimpse of the css involved... more confusion I'm afraid.
I think that by declaring a font size in the body tag you are setting a default font size - this will be used whenever there is no other styling applied - right?
Or... do you do so to set a reference for subsequent font sizing. For example: If I set the body selector to:
font-size: 1em
Does this set up using percentages? Would {font-size: 85%} on a later selector be 85% of 1em? Or not?
From peeking at a the style sheets of some pages I have seen a lot of different methods used... some examples would be:
font-size: 62.5%; (peeked at yours Richard :) )
font-size: 0.84em (Eric Meyer)
Then I read over at W3 that there is such a concept of using "large, medium, etc... I don't get that at all... what is the standard reference there? "Larger" than what?
I guess I was hoping there was a standard or "best" way to do this. I'm trying to have an eye toward the "right" way these days.
Also - as a side note... I read a lot about how however you set it up it should be friendly to those who may need to resize for accesabilty reasons. I'm all for that but can't a resize also break a layout?
Anyway - thanks for any insight into this.
Dodge
I've been reading about css font sizing - from this read something have become a bit clearer but somethings remain a bit of a mystery. ;)
I've also peeked at a few source codes (of people's sites I think know what they are doing) to get a glimpse of the css involved... more confusion I'm afraid.
I think that by declaring a font size in the body tag you are setting a default font size - this will be used whenever there is no other styling applied - right?
Or... do you do so to set a reference for subsequent font sizing. For example: If I set the body selector to:
font-size: 1em
Does this set up using percentages? Would {font-size: 85%} on a later selector be 85% of 1em? Or not?
From peeking at a the style sheets of some pages I have seen a lot of different methods used... some examples would be:
font-size: 62.5%; (peeked at yours Richard :) )
font-size: 0.84em (Eric Meyer)
Then I read over at W3 that there is such a concept of using "large, medium, etc... I don't get that at all... what is the standard reference there? "Larger" than what?
I guess I was hoping there was a standard or "best" way to do this. I'm trying to have an eye toward the "right" way these days.
Also - as a side note... I read a lot about how however you set it up it should be friendly to those who may need to resize for accesabilty reasons. I'm all for that but can't a resize also break a layout?
Anyway - thanks for any insight into this.
Dodge