pinkshiro
05-16-2005, 05:55 AM
Hi there,
I am working on a site. I origonally was declaring a "body" style in my css, but soon realised that i also need to declare a "html" style to correct something in opera. But now my margins are screwy in everything except IE. Following are the css for my body and html style tags. Can someone please tell me where the best place to set my margins/padding within these two style tags so that I have a 10pixel margin (or) padding on the top and bottom of the site.
html {
height: 100%;
margin: 0px, 0px, 0px, 0px;
padding: 10px, 0px, 10px, 0px;
}
body {
height: 100%;
background-color: #AAAAAA;
text-align: center;
}
Would really appreciate it if someone could help me! :)
I am working on a site. I origonally was declaring a "body" style in my css, but soon realised that i also need to declare a "html" style to correct something in opera. But now my margins are screwy in everything except IE. Following are the css for my body and html style tags. Can someone please tell me where the best place to set my margins/padding within these two style tags so that I have a 10pixel margin (or) padding on the top and bottom of the site.
html {
height: 100%;
margin: 0px, 0px, 0px, 0px;
padding: 10px, 0px, 10px, 0px;
}
body {
height: 100%;
background-color: #AAAAAA;
text-align: center;
}
Would really appreciate it if someone could help me! :)