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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:47:08+00:00 2026-05-24T20:47:08+00:00

I have a problem with my first fluid grid layout. This layout looks displaced(varying

  • 0

I have a problem with my first fluid grid layout.
This layout looks displaced(varying width) in the most browsers. It works only in firefox.(not in e.g. chrome or opera)
I don’t understand why.

Thanks

<!DOCTYPE html>
<html>
  <head>
    <title>Grid Test</title>
    <style type="text/css">
      .col {
        float:left;
        background-color: grey;
        margin-left: 1%;
        margin-right: 1%;
        margin-top: 1px;
        margin-bottom: 1px;
        height: 50px;
        text-align: center;
      }

      .one_quater {
        width: 23%;
      }
      .two_quater {
        width: 48%;
      }
      .three_quater {
        width: 73%;
      }

      .one_thirds {
        width: 31.333%;
      }
      .two_thirds {
        width: 64.666%;
      }

      .one_half{
        width: 48%;
      }

      .one_full{
        width: 98%;
      }

      .clear {
        clear: both;
        display: block;
        overflow: hidden;
        visibility: hidden;
        width: 0;
        height: 0;
      }
    </style>
  </head>
  <body>
    <div class="row">
      <div class="col one_full">
        1/1
      </div>
    </div>
    <div class="clear"></div>

    <div class="row">
      <div class="col one_thirds">
        1/3
      </div>
      <div class="col one_thirds">
        1/3
      </div>
      <div class="col one_thirds">
        1/3
      </div>
      <div class="clear"></div>
    </div>


    <div class="row">
      <div class="col two_thirds">
        2/3
      </div>
      <div class="col one_thirds">
        1/3
      </div>
      <div class="clear"></div>
    </div>


    <div class="row">
      <div class="col one_thirds">
        1/3
      </div>
      <div class="col two_thirds">
        2/3
      </div>
      <div class="clear"></div>
    </div>


    <div class="row">
      <div class="col one_half">
        1/2
      </div>
      <div class="col one_half">
        1/2
      </div>
      <div class="clear"></div>
    </div>

    <div class="row">
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="clear"></div>
    </div>

    <div class="row">
      <div class="col two_quater">
        2/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="clear"></div>
    </div>


    <div class="row">
      <div class="col one_quater">
        1/4
      </div>
      <div class="col two_quater">
        2/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="clear"></div>
    </div>

    <div class="row">
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="col one_quater">
        1/4
      </div>
      <div class="clear"></div>
    </div>


    <div class="row">
      <div class="col one_quater">
        1/4
      </div>
      <div class="col three_quater">
        3/4
      </div>
      <div class="clear"></div>
    </div>

  </body>
</html>
  • 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-24T20:47:10+00:00Added an answer on May 24, 2026 at 8:47 pm

    You are on the right track. The reason for differing rendering has to do with pixel rounding which is a problem for all browsers, especially IE.

    Check out this fiddle to see compatibility suggestions

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

Sidebar

Related Questions

hi i have problem with logging, first i registered user in database,this works ok!
This is my first post here. I have a problem. I need to take
i have a problem with my first app with NHibernate like ORM in this
I have a problem similar to the first problem in this question , which
I made my first jQuery plugin attempt, but I have this problem/bug which I
I have problem with Activities navigation, searching works good. Activities hierarchy looks like that:
I have problem reading/println after the first two FOR loop in this method. This
since I've removed some localisations from my app, I have this problem: the first
I have a fluid grid (in height and width). The LIs are always rectangular
I have a problem with my first android widget... I am doing like this:

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.