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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:31:30+00:00 2026-05-28T23:31:30+00:00

I have a problem with precise positioning of three equal divs. My humble knowledge

  • 0

I have a problem with precise positioning of three equal divs.

My humble knowledge of math reminds that 33+33+33=99%, and 1% is missed. Moreover, 33.33+33.33+33.33=99.99%, but browser compatibility does nothing with it.

<div id='products-choice-wrap'>
  <div id='products-choice'>
    <div id='choice1' class='three-bubbles'>
      <img src='/products/image1.png' alt='' />
    </div>
    <div id='choice2' class='three-bubbles'>
      <img src='/products/image2.png' alt='' />
    </div>
    <div id='choice3' class='three-bubbles'>
      <img src='/products/image3.png' alt='' />
    </div>
  </div>
</div>

And CSS:

#products-choice-wrap 
    { position: absolute; width: 100%; bottom: 0; 
    top: 100px; text-align: center; }
#products-choice      
    { position: absolute; width: auto; left: 40px; 
    right: 40px; margin: 0px auto; top: 0; bottom: 0; height: auto;
    max-width: 1080px; }
#products-choice div  
    { position: absolute; top: 20px; height: auto;
    overflow: auto; width: auto; padding-bottom: 200px; }
#products-choice #choice1.three-bubbles 
    { left: 0; right: 66.7%; }
#products-choice #choice2.three-bubbles 
    { left: 33.37%; right: 33.37%; }
#products-choice #choice3.three-bubbles 
    { left: 66.7%; right: 0; }

In this construction three images are situated in the center of the page in a row. In case of small resolution they become smaller while #products-choice becomes narrow. The attribute max-width prevents images from overzooming.

Positioning should be very precise because of smooth lines connections between them (see links to examples below). The problem appears when comparing different resolutions in different browsers. It looks like in Chrome such positions as 33.37% to 66.7% provide excellent picture both on resolution 1280x*** (#products-choice is max-width: 1080px) and smaller 1024x*** (#products-choice width becomes 929px). Click here for image.

IE and Firefox show a 1-px-gap between images, which disppears and appears again after browser size changing. Click here for image.

What can I do to say Chrome, IE and Firefox exact width (which is actually 1/3)?

  • 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-28T23:31:31+00:00Added an answer on May 28, 2026 at 11:31 pm

    You can’t achieve perfect 1/3 widths at all times with an elastic layout, so here’s what I suggest:

    Instead of using the position property to place your images, float:left them instead. This will ensure the three images are pressed up tight against one another, without the 1px gap appearing between them.

    The downside: Sometimes you’ll have a 1px gap to the right of the last image. You can sort of cover this up by assigning a background to the wrapper element, but in your case it seems like a better deal than having your images split apart.

    .three-bubbles {
        float:left;
        width:33.33333%;
    }
    

    Demo: http://jsfiddle.net/qemUY/2

    I left a lot of your CSS in which wasn’t needed, because I don’t know all of your requirements, but if you take this approach, your current code can be trimmed down considerably.

    Simpler demo: http://jsfiddle.net/qemUY/4

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

Sidebar

Related Questions

I have problem in some JavaScript that I am writing where the Switch statement
I have problem with fancybox. I want to write a function that will run
I have a problem that consist in comparing boolean expressions ( OR is +,
I ran into an interesting problem. I have a MySQL database that contains some
I have a problem with time measuring that's really bothering me. I am executing
I have a very weird problem that I can't understand. This is C code:
I have a simple problem, but can't come with a simple solution :) Let's
I have a python application , to be more precise a Network Application that
I have a very precise question: I want to make an android application that
To be precise, you guys may have noticed that facebook has this component placed

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.