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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:41:42+00:00 2026-05-20T20:41:42+00:00

I am building a 3 column layout with floated divs. I have a container

  • 0

I am building a 3 column layout with floated divs.
I have a container with a 20px padding. Within the container I have 1 full-width block, followed by 3 columns, following by another full width block.
Columns are floated to the left. width:31%, margin:0 1%. This adds up to 99%;
The full width blocks have margins of 0 2% 0 1%. Which also adds up to 99%.

Mozilla and IE render everything perfectly, but Chrome adds another 1% to the full width blocks. I can’t understand the calculation.

Could you maybe take a look: schoolscout.co.uk.

  • 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-20T20:41:42+00:00Added an answer on May 20, 2026 at 8:41 pm

    Because different rendering engines calculate percentages to pixels differently. John Resig provides a good overview in his article Sub-Pixel Problems in CSS.

    The picture included there shows a nice example of what can go wrong:

    Both Opera and Safari [and other WebKit-based browsers, MK] round down the widths of all the divs to 12px. This leaves a 2px gap (note the green) to the right of all the divs. If you’ve ever wondered why your nicely-aligned navigation doesn’t fill up the full contents of a container in these browsers, now you know why. On the plus side, at least you know what the width of these containers will all be the same, no matter what.

    Looking at your page, this is what I get:

                     m     b     p     w     p     b     m   total
    Chrome
    column_header    6     1     -   674     -     1    13     695
    column           6     -     -   215     -     -     6     227
    Firefox
    column_header    6     1     -   673     -     1    13     694
    column           6     -     -   216     -     -     6     228
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a grid dynamically and putting buttons in one of the columns.
I am building a 3 column web page (header & menu bar above a
I'm building a small WPF application. For the layout in the application, i use
I have a column of type 'nvarchar(max)' that should now hold XML information instead
I'm building a CSV import where the first row is the column names of
I am building an ASP.Net website, I have a db table which I want
i'm building my web application to connect with db. so far i have managed
Building on How Do You Express Binary Literals in Python , I was thinking
Building a client-side swing application what should be notified on a bus (application-wide message
Building the same project (without any changes) produces binary different exe-files: some small regions

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.