Help with CSS problem
-
Hey it’s me again, you know love me.
Anyway, I’ve been doing my head in trying to get the site to work for me the way I want. I’ts CSS valid, it’s XHTML valid. But it’s not design valid.
In FF (and IE, I dunno) note the bar below the header image and above the navbar.
What I am trying to do is get the footer closer in, so that page is static and doesn’t scroll. Right now it has a 2-3px scrolling which is driving me round the bend.
I think this is where the problem is…
#masthead {<br />
position: relative;<br />
top: 5px;<br />
background: #99CC66 url('images/masthead.jpg') no-repeat;<br />
width: 513px;<br />
height: 250px;<br />
margin-left: 0px;<br />
margin-top: -6px;<br />
}#navbar {<br />
background: url('images/navbar.jpg') no-repeat;<br />
position: relative;<br />
left: 0px;<br />
top: 0px;<br />
width: 513px;<br />
height: 46px;<br />
margin-bottom: 15px;<br />
padding: 0px;<br />
text-align: center;<br />
}I’ve tried to add a margin-top: -5px to the navbar – but it “borks” the page and everything shifts including the background. I do a margin-bottom: -5px and it does the same. Changing the min-height also does the same thing.
I’ve been trying to get the footer closer to the top and it worked increments and then after which it starts messing up.
Can someone help? Thanks in advance
- The topic ‘Help with CSS problem’ is closed to new replies.