Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    divs positioning problem

    hello
    i have this website:
    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!

  • #2
    New Coder
    Join Date
    Feb 2012
    Posts
    99
    Thanks
    1
    Thanked 5 Times in 4 Posts
    Code:
    <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.

  • #3
    New Coder
    Join Date
    Oct 2011
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    its in the end, this div should rap all divs

  • #4
    Regular Coder
    Join Date
    Jul 2008
    Posts
    157
    Thanks
    9
    Thanked 13 Times in 13 Posts

    need POSITION for z-index

    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/2...ehensive-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?]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •