body margins

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post June 30th, 2008, 6:14 pm

Usually, I take all of the margins from body using the following CSS
Code: [ Select ]
body {
margin: 0;
}
  1. body {
  2. margin: 0;
  3. }

Now, when I do that, only the left and right margins are 0 and the top is like 10+px.

Whats going on? My whole CSS file is...
Code: [ Select ]
body {
margin: 0;
padding: 0;
}

#container {
width: 100%;
}

#header{
background-image: url('../images/header.png');
height: 148px;
width: 100%;
text-indent: -9999px;
}
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. #container {
  6. width: 100%;
  7. }
  8. #header{
  9. background-image: url('../images/header.png');
  10. height: 148px;
  11. width: 100%;
  12. text-indent: -9999px;
  13. }

Any ideas/solutions/help?

Thanks.

[EDIT:] I found the solution... I changed...
Code: [ Select ]
body {
margin: 0;
padding: 0;
}
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. }

...to...
Code: [ Select ]
* {
margin: 0;
padding: 0;
}
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }


Thanks for reading :)
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 30th, 2008, 6:14 pm

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 133 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.