![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I recall reading a discussion in a newsgroup in the past that came to the conclusion that the best way to use font sizes with css was to use percentages. Is that still the case? If so, how does one implement it? To use percentages one needs a starting point to work from. How is this defined? |
|
I have googled for this and found so many conflicting sites, all showing differing reasoning for reccomending different ideas. But not one showing a simple idiots guide, so far. |
|
weblog | http://www.pretletters.net/weblog/weblog.html | webontwerp | http://www.pretletters.net/html/webontwerp.html | zweefvliegen | http://www.pretletters.net/html/vliegen.html | |
#3
| |||
| |||
|
|
I recall reading a discussion in a newsgroup in the past that came to the conclusion that the best way to use font sizes with css was to use percentages. Is that still the case? If so, how does one implement it? Since IE has not changed in 6 years, yes, that is still the case. |
|
To use percentages one needs a starting point to work from. How is this defined? The browser sets the default text size, usually it is 16 pixels. IE |
#4
| |||
| |||
|
|
To use percentages one needs a starting point to work from. How is this defined? |
#5
| |||
| |||
|
|
To use percentages one needs a starting point to work from. How is this defined? Dan Cederholm's method in the book "Bullet Proof Web Design" is to set the body to font-size: small, and go from there. |
#6
| |||
| |||
|
|
To use percentages one needs a starting point to work from. How is this defined? Dan Cederholm's method in the book "Bullet Proof Web Design" is to set the body to font-size: small, and go from there. |
|
weblog | http://www.pretletters.net/weblog/weblog.html | webontwerp | http://www.pretletters.net/html/webontwerp.html | zweefvliegen | http://www.pretletters.net/html/vliegen.html | |
#7
| |||||
| |||||
|
|
On Mon, 13 Mar 2006 18:42:39 +0100, josh <joshbrainerd (AT) yahoo (DOT) com wrote: Dan Cederholm's method in the book "Bullet Proof Web Design" is to set the body to font-size: small, and go from there. If that is true, rip those pages out of your book and forget about Dan Cederholm as far as this topic is concerned. |
|
Looking at URL:http://www.alistapart.com/articles/mountaintop/> for example, |
|
gives me a page that I cannot read comfortably without adjusting font size to 140% and setting the page width to fit in the width of my viewport (725px wide at the moment). |
|
It is a horrific design as far as accessibility and usability are concerned. |
|
All IMO of course. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
I was just throwing out a way to do it. How about another? Do you guys advocate not setting font sizes at all? That was the impression I got from some of the responses. I should also note that Cederholm doesn't advocate making the font-size really small, just to use a keyword as a starting base, and to adjust IE because it is different from most browsers. |
#10
| |||
| |||
|
|
Use this 100% as your starting point, defining it as the font-size for your body element (if not, IE may get it wrong IIRC). Then use 100% for the main text, use smaller if you wish for stuff like menu's and copyright notices, but keep in mind that anything under 85% might be illegable (some will argue below 90% is a no go area). |
![]() |
| Thread Tools | |
| Display Modes | |
| |