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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:16:22+00:00 2026-05-29T10:16:22+00:00

http://jsfiddle.net/VjMy8/ Please help me to set the #container to keep in the center of

  • 0

http://jsfiddle.net/VjMy8/

Please help me to set the #container to keep in the center of the page so that all other contents under the #container will be on center.

  • 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-29T10:16:23+00:00Added an answer on May 29, 2026 at 10:16 am

    in css:

    #container {
        width: xxx em/px/%/...;
        margin-left: auto;
        margin-right: auto;
        /* or margin: 0 auto; */
    }
    

    With this method you won’t even need a container, you can do something like this the code below.
    This code doesn’t need a float, so it doesn’t interrupt the flow of a page

    #div_left {
        width: 25%;
        margin-left: 12%;
    }
    #div_right {
        width: 50%;
        margin-left: 38%;
    }
    

    This method works in every browser in is much easyer then this (older & longer) method:

    body {
        text-algin: center;
    }
    #container {
        width: xxx;
        text-align: center;
    }
    #div_left {
        width: 30%; /* 30% of the container-width */
    }
    #div_right {
        width: 70%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/ww7dN/ I'm trying to design a page that is split in 2 colors all
http://jsfiddle.net/maximus392/gcQmM/7/ My problem is that the resizable image is making the other image to
http://jsfiddle.net/kfTFa/49/ I am trying to set up this functionality (basically big square = that's
http://jsfiddle.net/motocomdigital/gUWdJ/ I'm after a jquery scroll technique please that I would like to adapt
http://jsfiddle.net/3QeSe/44/ i am getting undefined any help appreciated ...
http://jsfiddle.net/tgWKZ/ This worked in the older version of jQuery. Only thing that is stopping
http://jsfiddle.net/yxhzU/1042/ I'm trying to modify this example so that within the top carousel you
http://jsfiddle.net/4UbKe/3/ Please check out the fiddle to see exactly why it doesn't work. I'm
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
http://jsfiddle.net/RedKnight91/Z6Ueu/4/ Hi! Look at that last menu (on the bottom). When you hover on

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.