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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:32:08+00:00 2026-06-18T04:32:08+00:00

When i make websites, it fits on my screen, but when i open the

  • 0

When i make websites, it fits on my screen, but when i open the website on another screen, it doesn’t work correctly (The divs overlaps eachother). It’s the same when i resize the window. I saw a couple of posts about this, but still, no good answer. I tried making a container to put them all in. But it’s still the same.

Any answers, why this is happening?

Container CSS code:

#container
{
    width: 960px;
    margin-left: auto;
    margin-right: auto;
}

I put it into HTML like this:

<div id="container">
Content goes here
</div>

EDIT: Guys, i don’t think you understand me. When i’m on another screen resolution, all the divs moves. I think everything moves, if i’m not completely wrong. I would like to know the real way of doing this. What do you do?

http://i49.tinypic.com/8wwo6r.jpg

http://i48.tinypic.com/359ydc9.jpg

FINAL EDIT: I fixed it with the percentage. It seems to work quite well! Thanks for all your answers! I know this will give me a kind of bad reputation, because i didn’t make myself clear enough.

  • 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-18T04:32:09+00:00Added an answer on June 18, 2026 at 4:32 am

    You can use percentages instead of pixel.

    #container {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    

    You can figure out percentages having screen resolution and the size you want using this forumla:

    WidthPercentage = ContainerWidth / ScreenWidth * 100

    So for your example if your screen resolution is 1360×768:

    WidthPercentage = 960 / 1360 * 100 = 70.5%


    This is called responsive design.

    You can find some guidelines here and some good articles here.

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

Sidebar

Related Questions

I want to make a website in cakephp framework.but the important thing is I
I've found a validation for websites. But later I needed to make some changes
I'm learning to make websites and I'm putting together a simple website for my
I want to make a count of visits to my website from referal websites.
A few clients have asked to make some static websites because their hosting doesn't
I am trying to make a website that can sign into other websites for
Being a web designer I hope to make websites that at least work in
We have several single Pylon websites running but would like to make these more
Is it mandatory in some countries to make all websites accessible? If so, what
I want to load external websites inside div and make it a bit smaller

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.