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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:16:30+00:00 2026-05-20T12:16:30+00:00

I have a fluid layout with DIV’s of different heights and widths, and I’d

  • 0

I have a fluid layout with DIV’s of different heights and widths, and I’d like them to be aligned by lines, kind of like when you do a search on istockphoto, except aligned to the top:

image here–>http://i207.photobucket.com/albums/bb121/jpbanks/Capturadepantalla2010-06-02alas1902.png

I tried floating all the DIV’s to the left, but they are not aligned correctly into lines:

image here–>http://i207.photobucket.com/albums/bb121/jpbanks/Capturadepantalla2010-06-02alas1900.png

See how “Prueba” doesn’t go all the way to the left? I thought of the jQuery plugin Masonry but what I want is obviously different. Any solution using either CSS or jQuery would be fine. Any ideas?

  • 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-20T12:16:31+00:00Added an answer on May 20, 2026 at 12:16 pm

    I found an even better css-only solution. All you have to do is add the following css to the children DIV’s:

    .box {
        display: inline-block;
        vertical-align: top;
        float: none;
    }
    

    That’s it! All you have to do is have them display as inline-blocks instead of positioning them as floated DIV’s! I can’t believe I didn’t figure it out before…

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

Sidebar

Related Questions

I have a row-fluid like this <div class=row-fluid> <div class=span1></div> <div class=span6></div> <div class=span5></div>
Have any of you seen like a javascript library that allows fluid div scrolling.
I have a fluid layout and I have a div that matches the height
I'm working on a fluid layout project. I have some fixed height DIVs in
I have the following codes <div class=row-fluid> <div class=span6><img src = <?php echo $photo
I have implemented the carousel on my webpage as follows <div class=container-fluid> <div id=myCarousel
I have two div's without any width as I am working on a fluid
I have a fluid CSS layout for a user application. The goal is that
Usually when I have floating elements inside a container div, I'll have something like
I have a div which has a fluid width, thus I cannot predict its

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.