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

  • Home
  • SEARCH
  • 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 8615771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:27:45+00:00 2026-06-12T05:27:45+00:00

Normal z-index order makes p element here to be higher than h1 element. In

  • 0

Normal z-index order makes p element here to be higher than h1 element. In my situation both have some background and h1 is overlapping p a little as a visual effect. Both elements are positioned relatively. So as the overlapping happens, p hides some part of h1 element. Is there an elegant solution to give p element lower z-index than h1 element without having to swap them and making them absolutely positioned?

<h1>Title</h1>
<p>description</p>
  • 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-12T05:27:46+00:00Added an answer on June 12, 2026 at 5:27 am

    Just add the z-index. It should work fine. Working example.

    Sample CSS:

    h1
    {
        position: relative;
        top: 20px;
        left: 20px;
        color: blue;
        z-index: 50;
    }
    p
    {
        position: relative;
        top: 0px;
        left: 0px;
        color: red;
        background-color: yellow;
    }
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a standard User controller with the normal set of actions (index, show,
I want to have the users index page to list the admin and normal
The normal JSON approach looks something like this: { list: [ { header1: some
I have a div 300 x 200px, and put some words in it with
I have a normal Rails project (without Active Record) using CouchDB (couchrest_model) as a
For a normal index constraint, you can find the columns it is on by
I have a asp:SqlDataSource and asp:DropDownList components on my page. On normal page it
Why doesn't Perl support the normal [] operator to index a string? Almost all
Some background: I am very new to OGL. My application concerns itself with 2D
I have the following code to generate me a 2D plot or 2 normal

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.