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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:48:30+00:00 2026-06-11T19:48:30+00:00

Without: adding any markup element there; without using display: inline-block; without knowing the div

  • 0

Without:

  • adding any markup element there;
  • without using display: inline-block;
  • without knowing the div width;
  • no hacks. the code should validate.

How can we center those three divs horizontally, but making them INLINE ?

http://jsfiddle.net/mMPMh/

Please note:
The reason that I’m avoiding inline-block, lies on the fact that IE7 should behave.
Other rules that don’t work on IE 7 should also be disregarded.

Is it possible ?

  • 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-11T19:48:31+00:00Added an answer on June 11, 2026 at 7:48 pm

    Like this – http://jsfiddle.net/mMPMh/10/

    Or this – http://jsfiddle.net/mMPMh/14/ ?
    This one works with IE7

    As for hacks, it can be served using conditional statement like

    <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="ie7-and-down.css" />
    <![endif]-->
    

    Or using this on your HTML (from HTML5BP)

    <!DOCTYPE html>
    <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
    <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
    <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    

    And serve the style like this :

    .lt-ie8 #one,
    .lt-ie8 #two,
    .lt-ie8 #three {
        display:inline;
        zoom:1;
    }
    

    No hacks

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

Sidebar

Related Questions

How to give border to any element using css without adding border-width to the
Is there any way to format this so it's a valid expression, without adding
Is there any other way to access one and the same menu without re-adding
I want to create a JToolBar without adding it into any JFrame window. If
Is it possible—without adding an extra wrapper element—to offset the position of text in
Is there a way to use numpy from a local directory without adding the
I am working on a large number adding program (without using biginteger class). I
why i'm getting the memory leak errors without allocating or adding any elements to
Is there any alternative for adding the below html other than in the template
Is it possible to send a MIME message as it is, without adding any

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.