Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8416849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:53:01+00:00 2026-06-10T01:53:01+00:00

I have the following markup: http://jsfiddle.net/dy4TG/3/ <div class=slide-wrap> <div class=slide> <div class=text>Text here</div> <img

  • 0

I have the following markup:
http://jsfiddle.net/dy4TG/3/

<div class="slide-wrap">
    <div class="slide">
        <div class="text">Text here</div>
        <img src="image.jpg" />
    </div>
</div>

<div class="overlay"></div>

the .slide div must be absolutely positioned, and .slide-wrap would have position: relative.

Is it possible for the .overlay div to be between the image and the .text div? I need the stacking context to be like this (highest to lowest):

-Text

-Overlay

-Image

Thanks!

Live example here: http://movable.pagodabox.com (inspect the slideshow… in the specific context of this example, “overlay” has the class “kineticjs-content”, and the .slide div is inside of the #slides parent div.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:53:03+00:00Added an answer on June 10, 2026 at 1:53 am

    The key is to make sure everything is positioned absolutely, this way you can float everything however you wish, with any z-index.

    css:

    .overlay {
        width: 20px;
        height: 20px;
        background: #fff;
        z-index: 50;
        position:absolute;
        top:0;
        left:50px;
    }
    img{
        z-index: 20;
        position:absolute;
        top:0;
        left: 5px;
        width:100px;
        height: 100px;
        background: #000;
    }
    .text {
        z-index: 999;
        color: #888;
        position:absolute;
        top:0;
        left: 5px;
    }
    .slide-wrap{
        position:relative;   
    }
    .slide{
        position:absolute;
        top:0;
        left:0;
        width:100px;
    }​
    

    jsfiddle link: http://jsfiddle.net/a7Apz/3

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following markup: <p class=managebox> <button value=Add page> <img src=page_add.png alt=Add more
I have the following markup: <div id=routes> <ul id=routesList> <li class=routes>Route 1</li> <li class=routes>Route
I have the following markup - <div class=area 1 friendly> <div class=area-count> 8 </div>
Alright, let's say that I have the following markup: <div class=ticker> <p>News Item One.
I have the following markup: http://www.webdevout.net/test?011 As you can see, the li element is
I have a jQuery accordion with the following markup <div id=accordion> <div class=group id=1>
I have following HTML markup, <div id=subcontent_l> <p> <a href=/membership-packages/><img height=202 width=644 alt= src=http://74.52.72.231/wp-content/uploads/2010/06/banner1.jpg
I have the following markup: HTML <div class=container> <div class=sidebar> info <br/> info <br/>
I have the following markup using a twitter bootstrap modal plugin: <div class=tabbable> <ul
I have the following markup: <div style=overflow:auto;width:500px;height:100px;> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.