body margins

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

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 :)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 38 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.