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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:11:50+00:00 2026-05-23T22:11:50+00:00

I have lot of boxes (display: inline-block + float: left) with variety of width

  • 0

I have lot of boxes (display: inline-block + float: left) with variety of width and height like this:

AA BB CC DDD EE FF GG
   BB    DDD    FF
         DDD

And i don’t know how to do, that when box have to be wrapped, it will be aligned in next “line” like that:

AA BB CC DDD EE FF GG
   BB    DDD    FF
         DDD
EE

Not as natural float: left:

AA BB CC DDD EE FF GG
   BB    DDD    FF EE
         DDD

Real example (current state):

BAD positioning

Expected result wich i want to achieve:

enter image description here

jsFiddle demo: here

  • 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-23T22:11:53+00:00Added an answer on May 23, 2026 at 10:11 pm

    In your demo, you have both float: left and display: inline-block. float: left forces display: block, so display: inline-block was doing nothing whatsoever.

    You can achieve your desired result with display: inline-block; vertical-align: top.

    See: http://jsfiddle.net/tdSnH/1/

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

Sidebar

Related Questions

I have a lot of placeholders like so: <input placeholder=Placeholder> However, in IE this
Suppose I have a application form which contain lot of boxes like email,username,age etc...I
I have three select boxes. <div style='float: left; padding-right: 10px;'> <select size=10 name=company_id> //
I have a lot of check boxes in my WPF form. I want to
We have lot of object with this kind of design : Interface and several
Have a lot of unnecessary results using contains() method in my query. Don't tell
I have a lot of div boxes with nested div .title s, with a
I have this function below which returns all IDs of checked boxes on my
I have a hierarchy like this: Scene  - gameWorld (CCLayer Z:0)     - player (CCSprite
I have found a lot of articles on this issue, but none of them

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.