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

    Exclamation HELP stacking Divs

    So here's the issue I am having. I am trying to stack 2 separate Divs (one logo and one text) on top of a js slider. I want the logo and text to be static with the pictures sliding in behind them. Is this even possible?? I have tried using position:relative, Css etc. I am at a loss.

    I will need a little bit more than just a "use this", as I am just learning and anything overly technical will not help or make sense. So some explanation, even a small walk through would be greatly appreciated.

    I have images of what I am trying to accomplish, so If you think you can lend a hand or an idea, send me a message and I will forward the info and code snippets to help you see what I am trying to do.

    Thanks in advance for any help provided!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,640
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    Quote Originally Posted by sondcraze View Post
    I have tried using position:relative, Css etc.
    Have you also tried to use z-index together with position: relative?

  • #3
    Regular Coder Vincent Puglia's Avatar
    Join Date
    Jul 2003
    Location
    where the World once stood
    Posts
    367
    Thanks
    0
    Thanked 13 Times in 13 Posts
    the z-index is a css property that determines priority in stacked objects, so if you set your images z-index to -1 and then stack your divs, your image should display.

    see http://www.w3schools.com/cssref/pr_pos_z-index.asp for code examples (1 in the DOM z-index link) and a so-so explanation

    Vinny
    Where the world once stood
    the blades of grass
    cut me still


  •  

    Posting Permissions

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