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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:54:49+00:00 2026-05-29T23:54:49+00:00

If I have five 32×32 pixel images in a div container I can easily

  • 0

If I have five 32×32 pixel images in a div container I can easily make them ‘word-wrap’ left-right and organise themselves into a row of 3 images, then a row of two:

<div style="max-width:96px">
  <img src="a.png"/>
  <img src="b.png"/>
  <img src="c.png"/>
  <img src="d.png"/>
  <img src="e.png"/>
</div>

Which results in:

a b c
d e

If I reduce the max-width of the div to 64px then I will see

a b
c d
e

But, is there way that I can specify a max-height of a div and have the images organise themselves like this:

a d
b e
c

So that if the height of that containing div is actually variable the 32×32 images will stack vertically until there is no room, then start a new column?

(Ideally I would have the filled columns on the right and the unfilled column to the left, but any suggestions along these lines would be appreciated).

Thanks

  • 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-29T23:54:50+00:00Added an answer on May 29, 2026 at 11:54 pm

    I don’t know if that is entirely possible with regular (pre-v3) CSS. You’re fighting against the document “flow”, which will display images as inline, hence the first arrangement. You could try the CSS columns property – but that won’t work in older browsers.

    There may be JavaScript solutions out there as well, but I don’t know of any off the top of my head.

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

Sidebar

Related Questions

I have five WSDL's that share namespaces, but not all of them. I generate
I have five panels with some logic in every of them. How could I
I a template, I have five DIV elements underneath each other on a HTML
I am using ui:repeat tag which render images. I have five images i want
Let's say I have five or more input computers that can affect whether a
I have five tables and i want to get result out of them. Here
Assume you have five products, and all of them use one or more of
My Brain Is Going to Explode.. . I have five images all named 0,1,2,3,4.
i have five divs <div id=box1>content 1</div> <div id=box2>content 2</div> <div id=box3>content 3</div> <div
I have five buttons on one form that when clicked enables a bool each

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.