HighDots Forums  

Re: Critique my CSS style

Websites/HTML pages critique & reviews Discuss and review existing WWW material (alt.html.critique)


Discuss Re: Critique my CSS style in the Websites/HTML pages critique & reviews forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Critique my CSS style - 02-15-2005 , 09:43 AM






Randall Fox wrote:
Quote:
How bad would I be if I change the <body> font size from 1em to
.9em.. I designed the page for my resolution, and now I just want
to scale it down a bit.. Would that be a bad way to do it?
I would set the body font to 100% then set others as appropriate, such
as below. Using em can cause a disastrous display bug in IE.

body, td { font-size: 100%; }
h1 { font-size: 220%; }
h2 { font-size: 180%; }
..legalese, .copyright { font-size: 90%; }

--
-bts
-This space intentionally left blank.


Reply With Quote
  #2  
Old   
rf
 
Posts: n/a

Default Re: Critique my CSS style - 02-15-2005 , 09:09 PM






"Randall Fox" <fox_no_spam-usenet001 (AT) yahoo (DOT) com> wrote

Quote:
I would set the body font to 100% then set others as appropriate, such
as below. Using em can cause a disastrous display bug in IE.

What is the display bug? The reason I use "em" so much is that for
some of the non-font settings, 100% has a different meaning than 100%
of the font size.
It occurs when all font sizes are specified in ems and the viewer changes
her text size. Instead of going from smallest to largest it goes from
microscopically small to cosmically large.

The usual workaround is to also specify font-size: 100% for the body.

Quote:
So are you saying to use em for the other (non-font) settings, and
then use percentages for the "font-size: " style ?
That'll also work.

Why do you need to specify font size at all? Let your viewer use her
default.

--
Cheers
Richard.




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.