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 8522481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:07:53+00:00 2026-06-11T07:07:53+00:00

I am trying to create a website where I have several divs positioned in-front

  • 0

I am trying to create a website where I have several divs positioned in-front of a background div by using z-index and position:absolute. This background div will be transformed later into a content carousel so it is vital that its text are selectable. My current code does not allow for the text and link to be selected and I am wondering how would I fix this.

http://jsfiddle.net/6fwf9/2/

HTML:

<div id="header" class="box">header</div>
<div id="bg">
    Cannot highlight this text <br>
    <a href="">Cannot click on this link</a>
</div>
<div class="box">content</div>​

CSS:

.box { width: 150px; height:50px; background:aqua; margin:20px; }
#header { margin-bottom: 150px; }
#bg { width:200px; height:200px; padding-top:100px; background:pink; 
     position:absolute; top:0; z-index:-10;}​

EDIT – Image of what I am trying to achieve: https://i.stack.imgur.com/3TF99.jpg

  • 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-11T07:07:54+00:00Added an answer on June 11, 2026 at 7:07 am

    I just saw your picture, This is how I would do it.

    <div id="bg">
        <div id="container">
            Cannot highlight this text
            <br>
            <a href="javascript:void();">Cannot click on this link</a>
        </div>
    
    </div>
    <div id="header" class="box">header</div>
    <div class="box">content</div>
    

    And for the CSS, Please take notes that I put border around the container to show where it is and what is the width and height

    .box{
        width:150px;
        height:150px;
        z-index:2;
        position:absolute;
        background: cyan;
        top:150px;
        left:20px;
    }
    
    #bg{
        background-color:pink; 
        width:200px; 
        height:170px;
        position:absolute;
        top:0px;
    }
    #header{
        position:absolute;
        width:150px;
        height:50px;
        left:20px;
        top:20px;          
        z-index:2;
        background: cyan;
    }
    #container{
        width:100%;
        position:relative;
        border:1px solid black;
        margin-top:100px;
    }
    

    The only thing left is you play with your dimention.
    Actualy I put everything absolute exept the container.

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

Sidebar

Related Questions

I am trying to create a views system on my books website. I have
I'm trying to create an asp menu for a website. The site will have
I am trying to create a website that will have the following Web Access
I am trying to create a website. I have created a vertical drop down
I'm trying to create a website with a background-size:100% 100% css rule. It's an
I am trying to create a dynamic website, I have a database with some
am a beginner in C#. am trying to create a website i have a
Hi I am trying to create a portfolio website. In order to not have
I'm making a website and trying to create a login box. I have a
i'm trying to create a portfolio website using wordpress, each post has view costum

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.