Caroline
As you've discovered, it can be tricky. You have to be careful that
one style is not nested into another style, ie that there is no
"parent" style that is affecting the size of the font already.
For example, if you decide to set a style for a section of your
document using a <div> tag, and you set the font size to be, say,
90%, then if you also set 90% for the font size of <p>, then the
effect for a paragraph in the parent division will be 90% of 90%,
i.e. smaller than you might want.
I'm not saying that you've done this, but it's the kind of thing you
need to watch out for.
Also, as Tony Sutton pointed out, not all browsers support
stylesheets, and more importantly, different browsers support them
differently. Not all browsers will render "small" the same, or even
"85%". But there were problems with the <font> tag as well. The
secret is to get it to look good (though not necessarily the same)
for the majority of the most-used browsers, and for it to look "good
enough" for the rest.
P.
At 12:30 pm +0000 23/3/01, Thorpe, Caroline M wrote:
>I like the idea of using the relative sizes in my stylesheet but the
>practical effect was that when I redefined the html styles eg li p
>etc
>using this method. I got rapidly reducing text sizes. This led me
>use point sizes. Have I missed something?
>
>Caroline Thorpe
--
*************************************************************
Paul Milne
EDINA Documentation Officer Tel: +44 (0)131 650 4626
Ext. 504626 Fax: +44 (0)131 650 3308
EDINA <http://edina.ed.ac.uk/> email: [log in to unmask]
University of Edinburgh
"An optimist sees a glass that's half full. A pessimist sees a glass
that's half empty.
An engineer sees a glass that's twice as big as it needs to be."
|