![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I thought this would be easy but I'm stuck :-( With CSS, I have the body set to font-size: .9em; and for a footer div, I have the font-size: .8em;. But the footer and every other location where I've tried to set the font other than the body size inherits the body font size instead. If I use px instead of em, it works fine. Am I missing something with em? Tks |
#3
| |||
| |||
|
|
Lossed wrote: I thought this would be easy but I'm stuck :-( With CSS, I have the body set to font-size: .9em; and for a footer div, I have the font-size: .8em;. But the footer and every other location where I've tried to set the font other than the body size inherits the body font size instead. If I use px instead of em, it works fine. Am I missing something with em? Tks The footer should get its own font size, regardless of the body's parameters. But *where* is the similarity showing? IN DW or in preview in a browser? If the latter, you might have the browser preferences set to show nothing smaller than a certain size. Which browser is it? If not, can you show the code and styles? Or better: an URL? -- Dan Vendel - *GOF* "Eagles may soar, free and proud, but weasels never get sucked into jet engines." Contact: http://www.proformica.com/contact.shtml Call or chat me via Skype ID: danvendel, but DON'T ask questions that you can ask here! (get Skype at http://skype.com) |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Dump the ems and use %. Set a default % on the body and then scale your text off that. |
|
#content p { font-size: 80%; } |
#6
| |||
| |||
|
|
.oO(jojo) Dump the ems and use %. Set a default % on the body and then scale your text off that. There's no difference between % and em for font-size (except for browser bugs). |
|
#content p { font-size: 80%; } Why 80%? What's wrong with the user's default size (100%)? |
#7
| |||
| |||
|
|
Michael Fesser wrote: Why 80%? What's wrong with the user's default size (100%)? Personal preference, I think the text presents better at 80% than 100%. It's my page, not their's, |
|
if they want to increase font size then I allow them to do so, they have a choice. |
#8
| |||
| |||
|
|
Sure the visitor can increase the font-size, but he can also simply leave sites that are unreadable with his preferred settings. |
#9
| |||
| |||
|
|
Why 80%? What's wrong with the user's default size (100%)? |
#10
| |||
| |||
|
|
My understanding is that the percentage is not based on the user but the font source. No? |
|
As for readability issues, most people who have difficulty reading have the rez set to 800x600, and even 80% font size looks pretty big at that rez. |
![]() |
| Thread Tools | |
| Display Modes | |
| |