View Single Post
Old 12-12-2011, 06:50 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello WebLizzard,
If you nest #header in another container you can make #header center like the rest of your content and still have your black bar across the top.

Look how it acts when you do this -
Code:
#header {
    background-color: #000000;
    height: 130px;
    margin: 0 auto;
    position: relative;
    width: 750px;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
WebLizzard (12-12-2011)