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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:44:52+00:00 2026-05-25T12:44:52+00:00

I have position:fixed <div> that appears in the middle of the screen. When there

  • 0

I have position:fixed <div> that appears in the middle of the screen. When there are messages, a second position:fixed <div> is put next to the first <div>.

I’m finding on different screen sizes (say a netbook – small screen) the <div>‘s sit on top of each other.

Is there a way to lock their position to each other? I tried using a fixed container to hold both of them, but they still moved.

 <div id="container">
    <div id="container"></div>
    <div id="container"></div>
 </div>

EDIT:

<div id="wrapper">
    <div id="container1"></div>
    <div id="container2"></div>
 </div>

CSS – container1 and container2 still move when I change the screen size.

#wrapper {
  position: fixed
}
#container1 {
  position: fixed
}
#container2 {
  position: fixed
}

do I need to use relative positioning on the container 1/2 divs?

  • 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-25T12:44:53+00:00Added an answer on May 25, 2026 at 12:44 pm

    Most importantly, id is unique. You cannot use id="container" on three different elements. Each must have their own id.

    <div id="container">
        <div id="container"></div>
        <div id="container"></div>
    </div>
    

    Should be something like this…

    <div id="wrapper">
        <div id="container1"></div>
        <div id="container2"></div>
    </div>
    

    Also, where is your CSS code?

    If you don’t want these things to push each other around as the window size changes, one method would be to specify the exact size and position of each container.

    EDIT:

    Again, without seeing an example of this page, a demo, or a better description of what you want, this is speculation.

    You could put fixed position on the wrapper and then put an exact size and position on the <div>‘s within.

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

Sidebar

Related Questions

I have one div with position:fixed 0 ; that stays on the top of
I have a div which is position:fixed so that it it always in the
I have a content div that loads different pages. I can't set fixed position
I have a div whose position has been fixed. Everything is fine till the
I have an XHTML 1.0 transitional Doctype. I have a <div> that is position:
I have a div that can be revealed from several buttons on the screen.
I have a fixed div setup using this: .box { position: fixed; width: 600px;
The idea: I'm creating a div that will change to position:fixed once the top
I have a div that is anchored to the bottom of a page (position:
I have a footer that has a fixed position at the bottom of the

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.