View Full Version : divs positioning problem

May 29th, 2012, 11:45 PM
i have this website:
efrat.gimano.info (http://efrat.gimano.info)
it has a main div called "wrap" and all the other divs should be inside it, with z-index.

any idea what i did wrong?


May 29th, 2012, 11:57 PM
<div class="wrap" name="main" >

<div class="moduletable">
<h3>main bg</h3>
<p><img src="/images/efratbg.png" alt="efratbg" width="1024" height="768" style="display: block; margin-left: auto; margin-right: auto;" /></p> </div>

You forgot another </div> because you started two divs. Unless the </div> is at the end.

May 29th, 2012, 11:59 PM
its in the end, this div should rap all divs

May 30th, 2012, 01:53 AM
You have so many CSS files, but one is specifying z-index for selectors that are not positioned.

See for instance http://coding.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/

Although z-index is not a difficult property to understand, due to false assumptions it can cause confusion for beginning developers. This confusion occurs because z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative.

Give your .wrap class a background-color to test it. {Why not ID #wrap if it is unique to page?]