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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:46:15+00:00 2026-06-13T10:46:15+00:00

I am trying to make a multi-column layout where each column is filled with

  • 0

I am trying to make a multi-column layout where each column is filled with images.
There must be horizontal scroll for the container of the columns, but the column gap must not change on window resize, and the last column must be able to be shown clipped on the one side.

The coloumn height depends on the parent container and when the window height is changed, the images must be reаrranged in order to fill the column with whole images (an image should not be clipped horizontally).

img {
    height: 70px;
    width: 100px;
}

.container
{ 
    height:400px; 
    overflow-x: scroll; 
    overflow-y: hidden;
    -webkit-column-width: 100px;
    column-width: 200px;
    -webkit-column-gap: 20px;
    column-gap: 20px;
}​

Here is a jsfiddle of what I currently have:
http://jsfiddle.net/9dL2F/1/

Do you have any ideas how this can be done?

  • 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-13T10:46:16+00:00Added an answer on June 13, 2026 at 10:46 am

    This is tricky. The container’s entire width is divided into columns, so you can’t have both a fixed column-width and column-gap. As the container’s width changes, the browser wants to fill the container. See Fixed gap between CSS columns.

    You could manage the width of .container: (see jsfiddle)

    @media (min-width: 480px) { .container { width: 480px; } }
    @media (max-width: 480px) and (min-width: 360px) { .container { width: 360px; } }
    

    …but that’s a lot of queries to manage!

    Does vertically-ordered images matter? If rows are fine, you could abandon CSS3 columns:

    img { display: inline-block; width: 100px; height: 70px; margin-right: 20px;}
    

    Similarly, you could float:

    img { float: left; width: 100px; height: 70px; margin-right: 20px;}
    

    I haven’t used them, and there is no IE support yet, but you could try CSS3 Flexboxes.

    None of these are pretty, but I don’t know of a beautiful solution…maybe CSS4 will save us?

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

Sidebar

Related Questions

I'm trying to make a multi-file upload. with help from this blog , but
I am trying to create a HTML table with column heads, but each column
I am trying to make a horizontal nav that can contain multi-line content in
I am trying to make a multi-player network game. Each player is represented by
I'm trying to make a multi-language application with Symfony2 and I'm currently trying to
I'm trying to make my C# application multi threaded because sometimes, I get an
I am using CSS multi-column layout to display text. The layout displays correctly in
I am trying to make a multi-dimensional array of characters in ruby, and this
I'm trying to make a multi instance engine in C++ with a wrapper for
I'm trying to make my site multi-lingual. I've created 2 folders and 2 files

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.