How to achieve horizontally centered layout with partially liquid column?


Tags: html,css,layout

Problem :

I have a request to make a HTML/CSS 3-column layout that meets these criteria:

  • middle and right column have a fixed width
  • left column has a max-width
  • the 3 columns are horizontally centered
  • ff the browser's viewport gets shrinked and the left border of the left column touches the left border of the viewport, then, by further shrinking the viewport, the left column starts shrinking in width until width is 0. (like in this example, except for that here the left column also has a min-width).

I could not find such a layout. If it is possible, how do I achieve this? (Telling me, it's not possible, would also earn the checkmark).



Solution :

Here is a guide to responsive layouts and another to some responsive frameworks you might consider using to achieve what you need to.

Generally it's good ettiqute on the stack network to try and create code yourself and then post specific questions if you get stuck.


    CSS Howto..

    Show dropdown menu only when hovered on span in li

    How to create full height content section with fixed header and footer in CSS with scrollbar hidden if not required [closed]

    How to add space between border line and menu item

    How to modify a general css using javascript and jquery and return the result as a new id

    How can I place html text on top of a canvas flot chart?

    Handle text as elements, how to hide with CSS?

    CSS How to make a DIV that starts 100px from the top reach the bottom of the page

    How to pass to next line that cutted elements in a list?

    How to display inline input in li?

    How to vertically align the baseline of text to a set point in HTML/CSS

    How to make this table's height equal to the middle td's height

    How to get the type word inside the input field once after pressing the Comma key and not after pressing space bar

    How do I make a class/div behave like it were floating?

    How to load Different css everytime onload

    How do I keep my links in my table on 1 line?

    making div inside div and put it right-bottom corner how?

    How to make text-overflow with ellipsis work with long strings that have no breaks

    How do I add a custom CSS image to the target background behind a given layer of text in Squarespace?

    CSS: how to get two floating divs inside another div

    How to change CSS for a specific page in wordpress?

    How can I create alike css classes [duplicate]

    How to modify a WordPress post's markup? [closed]

    css how to make the background image padding to right

    Fixing my CSS: How to get the lists and titles to work?

    how do I properly position a button element with css?

    How to center in div without text-align?

    How to create a texture paper background using CSS without image

    How do I wrap and set CSS properties to achieve the depicted results?

    how to apply css on only one class?

    How to change the link color of the current page with CSS