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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:23:36+00:00 2026-05-11T02:23:36+00:00

I am attempting to center my entire page using only CSS and it is

  • 0

I am attempting to center my entire page using only CSS and it is proving more complicated than i first expected. Currently my code works in IE but not in Firefox which makes a change. The page can be seen here. Below is the code portion involved:

#wrap {     width: 960px;     margin: 0 auto;     padding: 6px;     background: #FFFFFF; } 

The structure of my HTML is:

<body> <div id='wrap'>     Gubbins in here. </div> </body> 

It seems that in Firefox everything following the wrap div is be created outside of it. This is problem is resolved if i add a ‘float: left’ to the wrap div but then obviously everything floats left rather than center.

Any help would be greatly appreciated.

  • 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. 2026-05-11T02:23:36+00:00Added an answer on May 11, 2026 at 2:23 am

    Change your markup to

    <body> <div id='wrap'>     Gubbins in here. </div> </body> 

    EDIT: Looking at the link, you’ve already done that. You’ll want to either add overflow:auto; to #wrap or add a clearing div at the end just before the closing tag on the wrap div.

    Also, on your example page, the wrap div is missing its closing tag.

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

Sidebar

Ask A Question

Stats

  • Questions 76k
  • Answers 76k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I guess it depends on how the database is configured.… May 11, 2026 at 3:02 pm
  • added an answer Chris Hanson's excellent set of articles on setting up unit… May 11, 2026 at 3:02 pm
  • added an answer [myView setHidden:YES]; May 11, 2026 at 3:02 pm

Related Questions

I have been attempting to handle the KeyDown event of a UserControl (page) in
I am attempting to build a Tabbed side navigation menu using html/css. I am
I am attempting to POST against a vendor's server using PHP 5.2 with cURL.
I am attempting to parse a string like the following using a .NET regular

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.