View Full Version : CSS Header help.
Zokoli
20-09-2009, 06:54 AM
http://i35.tinypic.com/2d7x1k3.png
See, I don't wanna any of the bg showing where I have marked the red parts.
Anybody got any ideas?
I've also tried stretching the height+width.
All GOOD answers will be repped+.
Edit;
CSS Style code if needed;
body {
background-color:#36393D;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#header {
width: 1024px;
background: #FFFF88;
height: 130px;
margin-bottom: 20px;
}
Jahova
20-09-2009, 07:02 AM
Add the following to your body CSS tag.
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
Regards. Tom.
Zokoli
20-09-2009, 07:05 AM
Thanks Tom!
It worked!
+rep if possible.
Jahova
20-09-2009, 07:31 AM
No problemo.
emotional
20-09-2009, 11:55 AM
In future, I'd suggest adding
* {margin: 0; padding: 0;}
into your CSS document.
Agnostic Bear
20-09-2009, 12:14 PM
In future, I'd suggest adding
* {margin: 0; padding: 0;}into your CSS document.
Using the wildcard css is stupid. Especially for margin and padding which would ruin the margin and padding on list items and others. Just pop it into the body tag if you want it gone from the body.
BoyBetterKnow
20-09-2009, 12:28 PM
Using the wildcard css is stupid. Especially for margin and padding which would ruin the margin and padding on list items and others. Just pop it into the body tag if you want it gone from the body.
What about if you want your body as margin:auto but you want EVERYTHING else to have a 0px margin?
What about if you want your body as margin:auto but you want EVERYTHING else to have a 0px margin?
Then you would use that, but the thread starter didn't want it.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.