HighDots Forums  

Margin width ?

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


Discuss Margin width ? in the Cascading Style Sheets forum.



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

Default Margin width ? - 07-15-2007 , 12:07 AM






In the (old) HTML:
<body leftmargin="0" topmargin="5" rightmargin="0" bottommargin="0"
marginwidth="0">

Is there a need for anything in CSS for that last,
or do the others take care of it?

--
Wes Groleau

There ain't no right wing,
there ain't no left wing.
There's only you and me and we just disagree.
(apologies to Jim Krueger)

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Margin width ? - 07-15-2007 , 03:51 AM






Scripsit Wes Groleau:

Quote:
In the (old) HTML:
body leftmargin="0" topmargin="5" rightmargin="0" bottommargin="0"
marginwidth="0"
None of those attributes was ever part of any published HTML specification
(or even draft). They are just browser-specific trickery.

Quote:
Is there a need for anything in CSS for that last,
or do the others take care of it?
They are browser-specific trickery, so none of them takes any care of anyone
else.

I think you need to read my dusty old "Marginal issues in web page design",
http://www.cs.tut.fi/~jkorpela/www/margins.html

But what you really want (whether that's reasonable or not is another
matter) is apparently

html, body { margin: 0; padding: 0; }
body { margin-top: 5px; }

instead of all those attributes.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
Wes Groleau
 
Posts: n/a

Default Re: Margin width ? - 07-15-2007 , 03:27 PM



Jukka K. Korpela wrote:
Quote:
But what you really want (whether that's reasonable or not is another
matter) is apparently

html, body { margin: 0; padding: 0; }
body { margin-top: 5px; }
Thank you. That is what I suspected, and I was looking for
confirmation. My challenge is to fix it, not to malign the
original author.

Whether or not it's browser-specific trickery, lots of
people with lots of browsers seem to be happy with it.
However, I've never been fully accepting of the philosophy
of "If it works, don't fix it." Perhaps that's a flaw in
my character, but it's the way I am.

--
Wes Groleau
"Grant me the serenity to accept those I cannot change;
the courage to change the one I can;
and the wisdom to know it's me."
-- unknown


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 - 2009, Jelsoft Enterprises Ltd.