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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:55:02+00:00 2026-05-21T10:55:02+00:00

OMG, Really I’ve been here a thousand times before. I am so going to

  • 0

OMG, Really I’ve been here a thousand times before. I am so going to snippet this answer.
I cannot believe how hard it is to do something as easy as this.

<body>
    <div class="wrapper">
         <div class="class1">Page 1 of 1</>
         <div class="class1"> — </>
         <div class="class1">Next</>
    </div>
</body>

I need the wrapper to be dead centre to the browser. Doesn’t matter what the length of the text within is, or the amount of divs. How on earth does one do this?! I’m freaking out here. I’m not that bad at CSS. Googling this turns up forum posts from 2005. Or answers are found because the width was specified so that’s just cheating.

Hair is being pulled out!

I won’t put my CSS in here cos it’s just not working, theres no point.

Thanks.

  • 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-21T10:55:03+00:00Added an answer on May 21, 2026 at 10:55 am

    Working jsfiddle: http://jsfiddle.net/6utN2/1/

    I think you’d have been better off coding this with a UL and using the LI for your 3 elements.

    Here’s why: .wrapper MUST act as the container for those 3 divs because you’ve floated them – taking them out of the document flow.

    The only way to reign in the problem caused by this is to wrap your wrapper…which is not the leanest solution one could write.

    The UL technique works great here, though not that intuitive at first, BUT the UL is the container, LIs can all float left (and will stay nested within their parent). Finally, a single div could be used to span whatever element the UL resides, and center it.

    ps – I used .fauxBody as the wrapping wrapper – just a heads up.

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

Sidebar

Related Questions

I have a droppable with a drop event handler: $(this).droppable({ drop:function(){ console.log('OMG You Dropped
Regarding the specifications here: http://www.omg.org/technology/documents/formal/uml.htm What is the difference between without and with change
I can't seem to find one on the OMG's website. I need this document
When I go to https://wild.rileylark.appspot.com with chrome, I get the nice this is going
OMG - what is going on with Eclipse (3.3 Europa) - has anyone come
Ok so I'm circling around this site and people are like OMG, don't use
Sorry for this maybe foolish question but i'm newbie to SQL Server. Here structure
OMG! What am I doing wrong? declare @WTF TABLE ( OrderItemId int ) SELECT
Consider: var something = { wtf: null, omg: null }; My JavaScript knowledge is
How can I check if $something['say'] has the value of 'bla' or 'omg' ?

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.