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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:41:54+00:00 2026-06-11T03:41:54+00:00

I want to use CSS column-count for the divs inside a block. However, since

  • 0

I want to use CSS column-count for the divs inside a block. However, since some browsers (eg. IE 9) do not support column-count, I want to set float:left for the divs inside the block.

But if I do that, column-count will behave in a strange way in Firefox. It works fine in Firefox if I do not use float:left, while it works fine in Chrome with and without float. Please see the attached image.

enter image description here

So, how can I use the column-count and float:left together.

Here’s the JSFiddle Link: http://jsfiddle.net/V8KV6/1/

And here’s the code:

HTML:

   <div class="block">
       <div class="column"></div>
       <div class="column"></div>
       <div class="column"></div>
       <div class="column"></div>
       <div class="column"></div>
   </div>

CSS:

.block{
    width: 300px;
   -webkit-column-count:3;
    -moz-column-count:3;     
}

.column{
    background: orange;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    float: left;      
}
  • 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-11T03:41:56+00:00Added an answer on June 11, 2026 at 3:41 am

    You could use an IE conditional statement:

    http://www.quirksmode.org/css/condcom.html

    <!--[if IE]>
     According to the conditional comment this is IE
    <![endif]-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use CSS to format my GridView rows. I've set up my
I have some html files with their own css. I want to use them
I want to accomplish the following using only CSS and HTML, and not use
I want to use conditional css in my datatable. Here is my code. <ui:repeat
I want to use rounded border in my site. So, I use the CSS
I want to use the filter CSS property for both a gradient and an
I want to use YUI Compressor to combine and compress my css and js
I'm trying to use the CSS word-wrap property with break-word value. I want to
I want to add an external css sheet and I use this JS code:
The titles says it. I want a 2-column CSS layout that: is centered -

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.