Andy Matthews wrote:
> You need to assign a default font size to containers. I generally use this
> method:
> 
> body, p, div, td {
>     font-family: verdana;
>     font-size: .8em;
>     color: #000000;
> } 

Just a minor point of order here, but that approach will trigger the 
(now) well known font resizing bug in IE5 - IE7 and shouldn't be used. 
Sizing in ems is definitely a good practice (in my opinion of course, 
since font-sizing is holy war territory for those who live and breathe 
CSS), but using a percentage value on the body solves everything [1].

Don L wrote:
> Yeah, thanks, I used 10pt works all right as well. 

Don't use points for screen display, since points are designed for 
printing, and will end up causing you more grief than you can imagine 
[2], especially if you are relatively new to CSS.

Then Sonny Savage wrote:
> One thing I've found extremely useful is CSS "reset" templates

Yep, totally agree. They certainly help to alleviate some of the *pain* 
in gaining consistent cross-browser rendering. Another good example is 
Eric Meyer's reset sheet [3]. However, the global reset method  * 
{margin:0; padding:0}  is now frowned upon and is probably best avoided 
mainly due to problems with form rendering [4].

Hopefully this didn't sound too critical since that is not my intention, 
but as you can see it is very easy to go astray early on in the piece, 
at least as far as CSS is concerned. And as they say, the road to hell 
is paved with good intentions!!


[1] <http://www.gunlaug.no/contents/wd_additions_13.html>
[2] <http://css-discuss.incutio.com/?page=UsingPoints>
[3] <http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/>
[4] <http://www.search-this.com/2007/03/12/no-margin-for-error/>


HTH
Mark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303659
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to