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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:30:36+00:00 2026-06-03T15:30:36+00:00

I have 2 images that i need to use one over another while keeping

  • 0

I have 2 images that i need to use one over another while keeping them in the background,
currently i used the following code :

<div id="about_splash">
<img style="width:85%" src="image_src" />
</div>

where about_splash has the background css attribute

The problem is, these 2 images need to be in the background of some other html objects. which would be above and below div#about_splash.

I tried putting z-index, but that didnt work.

If i use the following code, how can i scale the inner image so it is a bit bigger than the parent

    <div style="background: url(layout/images/illustration.gif) 
        no-repeat center;min-    height:500px;">

    </div>
</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-03T15:30:38+00:00Added an answer on June 3, 2026 at 3:30 pm

    Farhan Ahmad already provided a good answer to you, however I’d like to contribute a bit further and maybe it would be of some help in the future.

    This is a small code snippet I used a while ago for positioning a container in the dead center of the screen and then positioning another container in the middle of the first one. The positioning is fluid and it depends on the resolution of the viewer.

    HTML:

    <div id="parentContainer">
        <div id="childContainer">
           <!-- I'm the center of attention -->
        </div>
    </div>​
    

    CSS:

    #parentContainer
    {
        height: 200px;
        width: 200px;
        background: #9dc0dd;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -100px; /*This is half of the container Height*/
        margin-left: -100px; /*This is half of the container Width*/
    }
    
    #childContainer
    {
        height: 100px;
        width: 100px;
        background: #435c68;
        position: relative;
        top: 50%;
        left: 50%;
        margin-top: -50px; /*This is half of the container Height*/
        margin-left: -50px; /*This is half of the container Width*/
    }​
    

    A demo of the above snippet can be found here.

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

Sidebar

Related Questions

I have some images from another source that need to refresh from their offsite
I have images that need to scale to the screen's size. The images will
I have some images that need to change, based not only on hover, but
I have a list of images that need to be displayed. However theres only
I'm using flex and have a few images that I need to sequence through.
I have been working on a website that has some images that I need
I have a slow connection that I need to send a PNG image over
I have a need to be able to identify one system from another in
One thing I have noticed on some sites is that they use one BIIIIIIIG
I have an array of images (can be up to 25) that need to

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.