homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

leftmargin=0 and topmargin=0 in XHTML?

 4:15 pm on Oct 27, 2005 (gmt 0)

in the days of HTML to get a page to "hug" the left and top edge of browser window (that is to have graphics for instance bleed right to the edge) you'd use the leftmargin="0" and topmargin="0" in the body tag

from what I understand that is no longer supported by XHTML 1.0, correct?

what do you do these days?



 4:35 pm on Oct 27, 2005 (gmt 0)

CSS : body { margin:0px } should suffice



 4:38 pm on Oct 27, 2005 (gmt 0)



 6:53 pm on Oct 27, 2005 (gmt 0)

To account for Opera prior to the version 9 beta which was recently released, you need to also set the padding to zero on the body element:

body {margin:0;padding:0;}

Other browsers all use the margin.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved