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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:53:22+00:00 2026-05-30T22:53:22+00:00

How can I get my background to act position: absolute; as my few div

  • 0

How can I get my background to act position: absolute; as my few div elements on top of it? I’m trying to make it so at different screen resolutions my div elements and background stay in sync. Below is the small code I have implemented thus far.

<!doctype html><head>

<title>Coming Soon! </title></head>



<style>

* { 

padding: 0px;
margin: 0px; 
}

#searchfold {
    background: url("../imgs/search_box.png") no-repeat scroll 0 0 transparent;
    height: 335px;
    margin-left: 173px;
    margin-top: 135px;
    width: 890px;
    position: absolute;

}


#bottomfoldbox {
    background: url("../imgs/bottom_foldbox.png") no-repeat scroll 0 0 transparent;
    height: 335px;
    margin-left: 173px;
    margin-top: 750px;
    width: 890px;
    position: absolute;
}

#searchfield {
    float: right;
    height: 50px;
    margin-right: 178px;
    margin-top: 250px;
    width: 296px;
}


</style>


</head>

<body style="background-image: url('http://mysite.com/wp/wp-content/uploads/2012/02/mysite_Homepage.gif'); background-repeat: no-repeat; background-position: center; height: 1055px; position: relative;">


<div id="searchfold">

<div id="searchfield">
<form name="input" action="html_form_action.asp" method="get">
<input type="text" name="user" style="height:40px; width:200px;"/>
<INPUT type="image" name="search" src="../imgs/search_btn.png" border="0" style=" float: right;
    margin-right: -130px;
    margin-top: -19px;}"></form>
</div>

</div>



</div>


<div id="bottomfoldbox">


</div>
</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-30T22:53:24+00:00Added an answer on May 30, 2026 at 10:53 pm

    I recomend you to use media queries to treat different screen resolution properly

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

Sidebar

Related Questions

How can I get the background color of any element, like a <div> ,
I'm trying to make a div's background color change on mouse over . the
Background - I can get HttpListener working fine for HTTP traffic. I'm having trouble
I can't seem to get a transparent background for a DataForm in Silverlight 3
Link to page: http://www.northtreestudios.com/sandbox/ Wondering how I can get the background images of my
I saw other posts but still can't get my background image to scale correctly.
I'm trying to nest a frameset in an iframe and I can't get the
I've figured out how I can get audio playing in the background on ios4,
I can get my background image to fill out every browser other than safari
I'm trying to use the example found in: example , and I can get

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.