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 7 of 7
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    question about <div> tag...

    HI
    I have too <div> layers and I want to determine that one will be above the other - how can I do that?

    thanks,

    ggi

  • #2
    New Coder
    Join Date
    Apr 2006
    Location
    Joussard, Alberta
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    declare the z-index for them in your stylesheet.

    Larger integer values are higer (closer to the user) on the screen.

    But this is a question in the javascript programming section, so what am I missing?

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    You must first give them the CSS position:absolute and the same coordinates x:y (or position:relative and, if the DIVS are siblings -one next the other- and the second should have the y position smaller with the amount of the first DIV's height).

    Should give us more details about what you need.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #4
    New Coder
    Join Date
    Apr 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thanks - z-index was what i was loking for

    Thanks - z-index was what i was loking for

  • #5
    New Coder
    Join Date
    Apr 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thanks - z-index was what i was loking for

    Thanks - z-index was what i was looking for

  • #6
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #7
    New Coder
    Join Date
    Apr 2006
    Location
    Joussard, Alberta
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Forgot about the positioning aspect of that Kor. Thanks for reminding me...


  •  

    Posting Permissions

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