If you look down, the part I’m using as footer just REFUSES to center in the screen… margin left and right auto just doesn’t want to work. I know I probably have pretty “crappy” code, but I would like to know what exactly is stopping this div from getting centered! The “logo” div does exactly what I want, but not the footer one…
Giving overflow-x:hidden; will do the same thing AND allow other browsers to get that overflow cut. Right now only mozilla browsers will (since you have the -moz- extension)
Yes you should!
Also, it is a good practice IMO to make the whole design fit in a container div that holds in the other divs!
& finally have you tried hidden for overflow-x?
You’re totally right, I can however answer the width thing, I have the following line to cut on overflow:
html { overflow: -moz-scrollbars-vertical !important; }
This makes it so if the resolution of the user is smaller then the image, it will just be cut, it’s not really important to display the full image (same thing happens in the banner), it’s just a design ‘thing’.
Looks like I’ll have to play with the image more, it just sucks how if I enlarge the image out of my resolution range, it seems off centered… it doesn’t happen with the banner, so weird.
for the black space set the footer height o exactly: 199px (height of the graphic) and remove the background-color (black: #000)!
also I would suggest using background: instead of background-image: , background-repeat etc…
Yep it is 1552px × 221px for me now too (cleaned the cache)!
recalculate the container height! looks like it is missing ~80px…
also use background:url(images/footer.jpg) no-repeat; that should be enough remove background-position:center;
Well I didnot look at your #container code when I posted the last message! I just saw that the container wasn’t aligned with the top of the background image… In fact, there’s a margin of 80px on top for the container! (from the logo div)
You should have a header div with a background image (mainbg.jpg) this will embrace the logo too!
then insert the image of the logo in the HTML (noct.png) attribute a class and add the top margin… This a lot better practice.
[ot]Stomme Poes suggested I become a ninja because I always ninja a post in before someone
What do you mean? The content is centered.
The footer doesn’t appear c entered but that is probably because the footer image is so wide, and the screen isn’t wide enough to give it space to even APPEAR centered