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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:53:15+00:00 2026-06-07T17:53:15+00:00

I am putting an image within a div which has a background image too.

  • 0

I am putting an image within a div which has a background image too. But only the image itself is appearing, the background image of the parent div is not appearing.

My code:

  <div id="proceedbody" style="background: url(http://www.asifsinan.com/wp-content/uploads/2012/07/please-proceed-image.jpg); background-repeat: no-repeat; line-width:810px; line-height: 718px;"><img id="proceed" style="position: absolute; top:200; left:350;" src="http://www.asifsinan.com/wp-content/uploads/2012/07/please-proceed-matter.png"></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-07T17:53:17+00:00Added an answer on June 7, 2026 at 5:53 pm

    There are several problems with the code, but the one that prevents the background from showing is position: absolute. That way, the img element is taken out of the normal flow of the document, leaving nothing inside the div, so its height will be zero.

    However, if you set dimensions explicitly for the div, then you can have the img absolutely positioned (though it would probably be better, more robust, to set position: relative on the div, so that img “absolute positioning” will be relative to the div). For dimensioning, use the height and width properties.

    The settings top:200; left:350 are ignored by conforming browsers. Use top:200px; left:350px instead.

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

Sidebar

Related Questions

I'm trying to create a EditText box, like below which has a image on
Will simply putting an image into the project folder do it?
Putting code at aspx files is slower? The code is recompiled every access? At
I putting wmd on my website. After putting code in and giving it a
Just putting part of some code here where I am writing two values to
Can anyone help me with putting an image or icon on a push button?
I have a really basic user control with a button that has an image.
i am wondering how to put a stretched background image in a sizer with
I'm using a UITableViewCell with UITableViewCellStyleSubtitle. However, because of the background image I'm using
I have a small app for taking a webcam image and putting this 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.