Previous Message
Next Message

[css-d] Re: Body Margin

Sent by Timothy J. Luoma on 29 January 2002 12:12


On Tue, 29 Jan 2002, David Gilden wrote:


> I have been using the following IE only code and want to upgrade to CSS,

YAY!  Welcome to the fold :-)


> So old style,
>
> <body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
>
> Is this equivalent to:
>
> <style type="text/css" media="screen">
> <!--
> body { margin:0;}
> --></style>
>
> and is this the more correct as well,

Yes, that is correct, and will work in CSS-supporting browsers.


> Comments?

CSS gains even more ground when you put the CSS in an external style sheet
and link it.

I saved nearly 75% of a large page once by moving to CSS because I did not
have to repeat font/bgcolor for cells in a large table.

Needless to say, folks noticed the difference in speed.

I thought some would complain, but even those who could not see the nice
style said "What I really wanted was the information anyway" -- crushing
blow to my designer ego, but a good lesson.

TjL


-- 
Timothy J. Luoma ~ http://www.tntluoma.com ~ [EMAIL-REMOVED]
Amateur Webdesigner Extraordinaire
Favorite pasttime: Finding and Reporting obscure typos in webpages
"Good web designers are frequently validated"
Previous Message
Next Message

Message thread: