What is the CSS to define the margins of the webpage?
It's possible to use: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
within the <body> tag, but that doesn't produce XHTML 1.0 valid code.
TIA.
| SitePoint Sponsor |
What is the CSS to define the margins of the webpage?
It's possible to use: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
within the <body> tag, but that doesn't produce XHTML 1.0 valid code.
TIA.
Become Interactive because its all gone a bit subBlue




You can set the margins of the <body>
body
{
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
margin-top:0px;
}
Depending on the layout you're looking for you could also use different variations of <div>'s and css.
Check out glish's css layouts for some more detail.
thanks, that site is an excellent resource![]()
Become Interactive because its all gone a bit subBlue





You can also shorten it to margin: 0px, 0px, 0px, 0px; or even margin: 0px; (if all the values are the same.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
Bookmarks