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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nested layers problem, show/hide, domtab please help!

    MY PROBLEM IS: that when i try to add a layer (inside a layer that will be shown/hidden) the new layer doesn't appear. Am I doing something wrong?

    What I'm wanting is a mini sub menu. Uses simple javascript and list. On mouseclick it shows a <div>. For this i'm following these examples :

    unobtrusiveshowhide/

    http://www.onlinetools.org/tools/domtabdata/

    ^ neither uses nested layers. But this example does, i think, for the centre section about the hotel (overview/photos/etc)

    long url


    This has thrown me. The javascript aside, i thought that this would be simple given the heirarchy of the layers, the succession: and that the containing layer, when commanded to appear would have everything within it. I've tried it with float. Tried then to keep it in flow of document so made it static...and absolute inside nested relative layer. Driving me nuts, now unsure if i've tried everything or not. Been all over google for hours and can't find anything really to help me. No direct hits about showing nested layers...it's probably obvious and i'm making mistakes. So could somebody let me know if this is possible? Do i have to define the layer a set way? Do i have to put the width and height, or the z-index or something? I've been in the source for that hotel example and had a look at the massive .css. Was thinking it might be to do with inline definition? Please help!! Maybe a quick bit of code in the "how now brown cow" example as to how?

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,372
    Thanks
    32
    Thanked 286 Times in 280 Posts
    I would think it would work. Absolutely or relatively positioning along with floats can have some odd effects on div though. Have you tried it while making sure that you've done none of those things to the interior div?
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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