...

View Full Version : divs positioning problem



gimano
05-29-2012, 10:45 PM
hello
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?

Thanks!

bigcasey123
05-29-2012, 10: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.

gimano
05-29-2012, 10:59 PM
its in the end, this div should rap all divs

waxdoc
05-30-2012, 12: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?]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum