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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:15:56+00:00 2026-05-26T07:15:56+00:00

Consider this example html: <body> <div id=background> <div id=area1>…..</div> <div id=area2>…..</div> <div id=area3>…..</div> </div>

  • 0

Consider this example html:

<body>
<div id="background">
        <div id="area1">.....</div>
        <div id="area2">.....</div>
        <div id="area3">.....</div>
    </div>
</body>

I have my area1, area2 and area3 divs all positioned where I want them using Twitter’s bootstrap helper library.

I now want to place a background picture behind all these. However, I want the background image to placed at a specific location. So I’ve set my css for background with the URL of my image. The image only takes up the space that the 3 divs below occupy.

If I change the positioning of the background div, then the other 3 areas move with it.

Therefore, I’m wondering, how can I position my background image in a specific location, without altering the other divs positioning?

Thanks

  • 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-26T07:15:56+00:00Added an answer on May 26, 2026 at 7:15 am

    Don’t move the div – change the position of the background picture using background-position. You can specify precisely the position in pixels (x y), percentage points(x% y%), or anchor it by the top/middle/bottom and left/center/right points. For example:

    #background {
      background-image: url('cat.jpg');
      background-position: center top;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider this example: http://jsfiddle.net/treeface/P8JbW/ HTML : <div id=test> <img src=http://ycombinator.com/images/y18.gif /> </div> CSS :
Consider this example (typical in OOP books): I have an Animal class, where each
I'm designing an HTML page for display in Android browsers. Consider this simple example
Consider the following example: <html> <body> <script type=text/javascript> var str=filename.jpg; var pattOne = new
Consider this example showing the YUI tree in action: http://developer.yahoo.com/yui/examples/treeview/tv_edit.html Select the title in
Consider this (snipped) example <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> <html xmlns=http://www.w3.org/1999/xhtml>>
Consider the following example : HTML: <div class=wrapper> <div class=left>Some text here</div><div class=right>Hello Stack
Consider this example: http://docs.sencha.com/ext-js/4-0/#!/example/grid/binding-with-classes.html I want handle 'selectionchange' event in the controller. Like following
Consider this example table (assuming SQL Server 2005): create table product_bill_of_materials ( parent_product_id int
Consider this example: zh_Hant_HK format = yy'年'M'月'd'日' ah:mm Not sure if you can see

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.