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

  • Home
  • SEARCH
  • 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 8412091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:35:21+00:00 2026-06-10T00:35:21+00:00

I have a fluid width layout. Left and right column have a fixed width

  • 0

I have a fluid width layout. Left and right column have a fixed width and my center column changes its width in between max and min width specified as the browser width changes or screen resolution changes. It looks like image below:

enter image description here

As you can see, there are some small containers in middle column, they hold up several products etc.

The problem that I am experiencing is that when the width changes and middle column cannot accommodate 3 containers, 1 will fall below, as they are floated and then it looks like something below:

enter image description here

Now this space that comes in the right of containers looks ugly. What I want to do is to keep them centered if one falls below when width decreases then two should appear in the center of the middle column and when another one falls then 1 container left should also appear in the middle like below:

enter image description here

Can I do this with css only? or I need to introduce some scripting language for doing it dynamically?

This is the css for container, that I am using

.prod-container{
    float: left;
    width: 180px;
    height: 290px;
    margin: 2px 6px;
    border: 1px solid black;
}

Example on http://www.myappontest.heliohost.org/index1.html

  • 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-10T00:35:23+00:00Added an answer on June 10, 2026 at 12:35 am

    Replacing float: left; with display: inline-block; in .prod-container‘s style and adding text-align: center; to #center-content-container‘s style will achieve the desired behavior.

    Working version of your page: little link. Here’s the modified CSS file, too: another little link.

    Hope that helped you in any manner!

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

Sidebar

Related Questions

I am working on a 3-column layout with two fixed-width sidebars (left and right)
I'm working on a fluid layout project. I have some fixed height DIVs in
I'm having some trouble with a fluid layout (with images using max-width:100%) in Internet
I have a fluid page (100% width) with this inside: [image-fixed-width] | [text-fluid-width -----------------------------------]
I'm trying to create a three column layout in CSS only with fixed left
I have a webpage with a fluid layout with a 100% width. When I
I know how to make a fixed+fluid column layout (and there are many examples
The site should have a fluid-layout, adjusting to the width of the device, in
I have a div which has a fluid width, thus I cannot predict its
I have a layout issue: .sectorMenuContentPane { float: left; width: 25%; } .sectorContentPane {

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.