HighDots Forums  

CSS class and tag font sizes using em.

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS class and tag font sizes using em. in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default CSS class and tag font sizes using em. - 10-03-2003 , 10:06 AM






Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable) I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.

I hope there is some one out there who can help or agrees that this
will happen.

Cheers

Luke

Reply With Quote
  #2  
Old   
Eric Jarvis
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-03-2003 , 11:01 AM






Luke Duddridge wrote:
Quote:
Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable) I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.

I hope there is some one out there who can help or agrees that this
will happen.

don't set a text size for the main body of text...leave it at the
default...if somebody has serious problems with their default text size
they will have asked how to change it long before they see your site...if
you don't like your own default text size then change your own settings

--
eric
www.ericjarvis.co.uk
all these years I've waited for the revolution
and all we end up getting is spin


Reply With Quote
  #3  
Old   
jake
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-03-2003 , 03:28 PM



In message <fa370f0.0310030706.14c25d4e (AT) posting (DOT) google.com>, Luke
Duddridge <luke (AT) 12-monkeys (DOT) freeserve.co.uk> writes
Quote:
Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

[snip]

Quote:
Cheers

Luke
Just wondering.

The page www.tauntondeane.gov.uk contains a 'W3C HTML 4.01' validation
flag.

Running the page through the w3c validator gives:

"This page is not Valid HTML 4.01 Transitional!"

........ followed by a list of the 13 errors that need fixing.

regards.



--
Jake


Reply With Quote
  #4  
Old   
Randy
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-03-2003 , 11:43 PM



Just have to ask, under "report it" (www.tauntondeane.gov.uk. ) what is
Fly-tipping?

I heard of cow tipping but not fly tipping :-)



"Luke Duddridge" <luke (AT) 12-monkeys (DOT) freeserve.co.uk> wrote

Quote:
Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable) I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.

I hope there is some one out there who can help or agrees that this
will happen.

Cheers

Luke



Reply With Quote
  #5  
Old   
Eric Jarvis
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-04-2003 , 01:19 AM



Randy wrote:
Quote:
Just have to ask, under "report it" (www.tauntondeane.gov.uk. ) what is
Fly-tipping?

I heard of cow tipping but not fly tipping :-)

"fly-tipping" is when somebody dumps waste without permission

--
eric
www.ericjarvis.co.uk
all these years I've waited for the revolution
and all we end up getting is spin


Reply With Quote
  #6  
Old   
kchayka
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-04-2003 , 06:35 AM



Sorry for not replying to the original post, but my ISP is having news
problems at the moment and the original isn't showing up (yet).

Quote:
"Luke Duddridge" <luke (AT) 12-monkeys (DOT) freeserve.co.uk> wrote in message
news:fa370f0.0310030706.14c25d4e (AT) posting (DOT) google.com...

www.tauntondeane.gov.uk.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable)
You have triggered a bug in IE that shows itself when font-size is set
in em units. The fix is a 1-liner:
body {font-size:100%}

Quote:
I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.
Your idea of "normal" isn't the same as mine. Please don't set the base
font size smaller than 100%. The reasons why have been posted in this
group numerous times, search google to read up on it.

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.



Reply With Quote
  #7  
Old   
Eric Jarvis
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-05-2003 , 11:16 AM



Nikolaos Giannopoulos wrote:
Quote:
kchayka wrote:

You have triggered a bug in IE that shows itself when font-size is set
in em units. The fix is a 1-liner:
body {font-size:100%}

I have heard about a bug when setting font size using em as well.

My question is: If body {font-size:100%} is used can the rest of the
stylesheet use em's to handle font-size OR should the entire stylesheet
avoid using em's for font-size.

I assume its the former but now that it has been brought up it would be
nice to nail this one down for sure.

why are people so keen to find a way to use em for font size?...if you
start from no body text size definition at all then there are few (if any)
inheritance issues with using % for headers and small print...em is surely
intended primarily for setting the size of other design elements in
relation to the font size, not for setting the font size itself

--
eric
www.ericjarvis.co.uk
all these years I've waited for the revolution
and all we end up getting is spin


Reply With Quote
  #8  
Old   
Nikolaos Giannopoulos
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-05-2003 , 11:23 AM



kchayka wrote:
Quote:
You have triggered a bug in IE that shows itself when font-size is set
in em units. The fix is a 1-liner:
body {font-size:100%}
I have heard about a bug when setting font size using em as well.

My question is: If body {font-size:100%} is used can the rest of the
stylesheet use em's to handle font-size OR should the entire stylesheet
avoid using em's for font-size.

I assume its the former but now that it has been brought up it would be
nice to nail this one down for sure.

Thanks,

--Nikolaos



Reply With Quote
  #9  
Old   
Nikolaos Giannopoulos
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-05-2003 , 12:12 PM



Eric Jarvis wrote:
Quote:
Nikolaos Giannopoulos wrote:

I have heard about a bug when setting font size using em as well.

My question is: If body {font-size:100%} is used can the rest of the
stylesheet use em's to handle font-size OR should the entire stylesheet
avoid using em's for font-size.

I assume its the former but now that it has been brought up it would be
nice to nail this one down for sure.


why are people so keen to find a way to use em for font size?...if you
start from no body text size definition at all then there are few (if any)
inheritance issues with using % for headers and small print...
Actually, I use % for font-size but I am in the process of redoing
margin and padding to use em - instead of the inflexible px that I have
now (for margin/padding that is).

I guess the only reason I considered switching font-size to use em's, as
well, was because I was going to do it for margin/padding. Not a great
reason - mind you - but I imagine most people do it for the "why not be
consistent" in the units that are utilized - while your at it - thinking.

Your comment makes a lot of sense IMO.


Quote:
em is surely
intended primarily for setting the size of other design elements in
relation to the font size, not for setting the font size itself
Thanks for the excellent points.

Personally, I actually prefer using % for font-size anyways and am glad
to stick to it.

I appreciate it,

--Nikolaos



Reply With Quote
  #10  
Old   
AT
 
Posts: n/a

Default Re: CSS class and tag font sizes using em. - 10-06-2003 , 08:40 AM



jake <jake (AT) gododdin (DOT) demon.co.uk> wrote

Quote:
In message <fa370f0.0310030706.14c25d4e (AT) posting (DOT) google.com>, Luke
Duddridge <luke (AT) 12-monkeys (DOT) freeserve.co.uk> writes
Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

[snip]


Cheers

Luke

Just wondering.

The page www.tauntondeane.gov.uk contains a 'W3C HTML 4.01' validation
flag.

Running the page through the w3c validator gives:

"This page is not Valid HTML 4.01 Transitional!"

....... followed by a list of the 13 errors that need fixing.

regards.
Cheers Jake.

I am still getting used to making some changes and then checking
that they are valid HTML.

Luke


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.