![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
body { font-family: arial; font-size: 95%; } p.fineprint { font-size: 75%; } Is the font size in the p.fineprint set to 75% of the *value in the body*? |
|
Also, how do EM and % compare? |
|
What are the technical differences? In which cases should/would I use one over the other? |
#3
| |||
| |||
|
|
body { font-size: 95%; |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Any reason to set the font-size at 100% only? Since the font-size is inherited, specifying the font-size for a site in the body means I don't have to repeat it for <p>, <ul>, <li>, <div>, <td>, etc. If I set the body to 100% but really want my font-size to be 95%, then I'd have to specify it for all tags, right? |
#7
| |||
| |||
|
|
really want my font-size to be 95%, |
#8
| |||
| |||
|
|
Any reason to set the font-size at 100% only? Since the font-size is inherited, specifying the font-size for a site in the body means I don't have to repeat it for <p>, <ul>, <li>, <div>, <td>, etc. |
|
If I set the body to 100% but really want my font-size to be 95%, then I'd have to specify it for all tags, right? |
#9
| |||
| |||
|
|
Viken Karaguesian <vikenk (AT) aol (DOT) com> wrote: If I set the body to 100% but really want my font-size to be 95%, then I'd have to specify it for all tags, right? That is 95% of what the user's browser is configured to use as the default text size. Presumably that default is what the user prefers. So why do you want it smaller? |
#10
| |||
| |||
|
|
I would recommend that you always use percentages, especially if nesting font-size declarations. IE fails to calculate these properly. ^^^^^ |
![]() |
| Thread Tools | |
| Display Modes | |
| |