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 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

Related Questions

I am attempting to create a visual element using DIV elements and CSS which
I am attempting to center a table and its rows in CSS. I can
So I am attempting to use the following code to center a div in
In attempting to make some Swing code more readable, I have made an InlineGridBagConstraints
I am attempting to build a Tabbed side navigation menu using html/css. I am
I am attempting to center a dialog that has fixed height and width (750x360)
I am attempting to create a simple application using Eclipse GEF that displays a
In the below code I am attempting to move the three buttons to the
I am attempting to orbit an object around a center point, much like the
I am working on a simple web app using jquery mobile. I am attempting

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.