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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:17:32+00:00 2026-06-09T05:17:32+00:00

Basically I have a Picture in a div nested in 2 divs. I wanted

  • 0

Basically I have a Picture in a div nested in 2 divs. I wanted to overlay a piece of tape onto it at the corner of the picture.

So I made a div for that piece of tape image and put it at the bottom of the document giving it the position of relative and giving it these attributes.

#tape
{
    width: 100px;
    height: 65px;
    position:relative;
    left: 25px;
    top: -662px;
}

And here is the Picture’s attributes:

#character-spotlight 

    {
        margin-left:50px;
        width:250px;
        height:250px;
        float:left;
        z-index:1;
    }

Bot of these Div’s are nested into

#content 
{
    width:800px;
    height:1360px;
    background-image:url(Cork.Board.png);
    background-size:100%;
    float:left;
    display:block;
}

Which is itself nested into

#container 
{
    width: 1024px;
    height:1600px;
    margin-left:auto;
    margin-right:auto;
    margin-top: 50px;
    display:block;
}

Here is the webpage

http://www.workaholicsfans.com/characters-files/Adam-Demamp.html

It works fine in Chrome but not IE and Firefox.
Any help would be greatly appreciated

  • 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-09T05:17:33+00:00Added an answer on June 9, 2026 at 5:17 am

    (There is no link in your post) I can hardly believe the situation you described and provided css could work. The fact that you have it working in Chrome is just pure luck i guess, are you might have been playing with the numbers to make it fit.

    The solution is actualy rather simple.

    <div class='picture-wrapper'>
     <img class='picture' src='picture.../>
     <img class='tape' src='tape... />
    </div>
    

    then in the css

    .picture-wrapper {
     position: relative;  /* this now acts as the reference for  position absolute of the children */
    }
    .tape {
     display: block;
     position: absolute;  /* position according to its parent */
     top: 0;  /* top position */
     left: 0; /* left position */
     z-index: 5; /* bring to front */
    }
    

    That should do the trick.

    edit:
    i just saw you added the link. If you want the piece of tape to overflow the picture edges, the easy way would be to add some padding-top and padding-left to the wrapper. something like this:

    padding: 8px 0 0 8px;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that i want to apply two backgrounds to it. Basically
I have a picture of an arrow basically, and a line of text that
Basically what I'm trying to do is have a picture rotate using mouse events.
I basically have a program that filters records from one excel file to another
I basically have 7 select statements that I need to have the results output
My big picture goal is to have a grey field over an image, and
I have a client requesting an animated/panned image be added to their website. Basically,
http://img804.imageshack.us/img804/9858/howtowrapmiddletext.png Basically I have a listview that is split in three sections. On the
I have this iPhone application that let users take a picture and save it
Hey all, so basically I have a very simple layout with a header image,

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.