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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:00:42+00:00 2026-05-28T18:00:42+00:00

Have been trying to fix this problem I have here. Basically I have a

  • 0

Have been trying to fix this problem I have here. Basically I have a website that has a background. Ontop of this background I have an centered image, lets call this image1. Exactly on top of image1 i want to draw image2. So basically I have a background which I want to draw two centered images ontop. I call them centeredImage and overlayImage.

Thank you for the help!
Best regards, Lukas

here is my code so far:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css" media=screen>

body{
    background-color:#f1e6d0;
    background-image:url('backgroundPattern.jpg');
}  
.containerPage
{
    position:relative;
    display: block;
    width:1024;
    height:1515;
    margin-top:50px;
    margin-left:auto;
    margin-right:auto;      
}
.overlayImage1
{
    position:absolute;
    left:0px;
    top: 0px;
    z-index: 1;
}
.overlayImage2
{
    position:absolute;
    left:0px;
    top: 0px;
    z-index: 2;
}

 </style>

 <title>A dream within a dream</title>
 </head>
 <body>


<!-- PAGE BEGINS -->
<div class= "containerPage">

    <!-- BACKGROUND IMAGE -->
    <img class="overlayImage1" src="column.gif"  unselectable="on" height="1515" width="1024"/>
    <img class="overlayImage2" src="webSite_split_page1.gif" height="1515" width="1024"/>
    <!-- CONTENT BEGINS -->
    <!-- LEFT SIDE -->

</div>

</body>
</html>
  • 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-05-28T18:00:43+00:00Added an answer on May 28, 2026 at 6:00 pm

    I see what you are after now. Try this. You will need to tweak the top value to get the correct vertical alignment.

    http://jsfiddle.net/frV3D/

    body{
        background-color:#f1e6d0;
        background-image:url('backgroundPattern.jpg');
    }  
    .containerPage
    {
        position:relative;
        display: block;
        width:1024;
        margin-top:50px;
        margin-left:auto;
        margin-right:auto;
    
    }
    
    .centeredImage { display: block; margin: 0 auto; }
    
    .overlayImage {
       position: absolute;
       top: 50%;
       left: 50%;
       width: 300px;
       height: 300px;
       margin-top: -150px; /* Half the height */
       margin-left: -150px; /* Half the width */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to fix this problem for hours. My app keeps crashing
I have been trying to solve this problem for hours (searched here as well
I've been trying to fix this problem for a while and have exhausted all
I just have a problem that I have been trying to fix for the
So, I have been trying to fix this for about two months. It all
I really need some help with this as I have been trying to fix
I have a strange problem which I have been trying to fix for some
Ok so I have been trying to fix this for days, and I'm not
Hey, I've been trying to fix this problem for a long time, The problem
I have been trying for hours to fix this code, I can't see what's

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.