- Last post
- 11 Responses
I'm trying to place my logo div on top of two other divs within a centred layout but it's not working.
The z-index works fine but It will not stay within the container div.
this is my desired layout:
<div id="container"><div id="logo"><img src="images/logo.png" /></div>
Can you give us your whole code? Like at pastebin.com?
Have you given your container a position: relative; declaration?
this is my container
margin: 0 auto;
width: 990 px;
maybe asking the obvious here, but is #logo not inside #container?
If its not inside the container its positioned absolute to the body.
Full code? A local test shows no issue. A small thing, the #container div width wasn't recognized until I removed the space between the numerical value and the unit > 990 px to 990px.
Thanks for all your help guys, it was that damn space.
css is so damn picky ain't it?!