Basically the way my site is layed out, I have some elements that have a full width background beyond the content page (e.g. having the nav bar background go across the page completely). So basically what I decided to do was create another div within the content div , and for the nav bar it worked, however for the next section of the site, for some reason , the child element covers over its parent element in all browsers. I dont understand why as it seems to work for the nav bar section.
Here is the CSS
#top-slider {
width:100%;
height:400px;
background: #222; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#fefefe, #f1f1f1);
background: -o-linear-gradient(#fefefe, #f1f1f1);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#f1f1f1)); /* older webkit syntax */
background: -webkit-linear-gradient(#fefefe, #f1f1f1);
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
float:left;
padding-bottom:20px;
position:relative;
width:980px;
}
#top-slider-full-bar {
position:absolute;
left:-9999px;
width:99999px;
background: #222; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#fefefe, #f1f1f1);
background: -o-linear-gradient(#fefefe, #f1f1f1);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#f1f1f1)); /* older webkit syntax */
background: -webkit-linear-gradient(#fefefe, #f1f1f1);
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
height:400px;
}
Here is the site, http://limerickchambers.hailstormcommerce.com as you can see, it seems to be working fine for the nav bar…
Ive tried z-index but that seems to have no effect.
limerickchambers.hailstormcommerce.com
Thank you
Consider changing your html structure to something like this: http://jsfiddle.net/KpTHz/
This would make it all much easier to manage.