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..

    How to resize CSS Box with increase in content

    how to resolve border-radius property issue in all versions of browsers? [duplicate]

    show html element before sending ajax sync request

    How to place a div right below another div?

    How to create a mouseover effect on menu links EXCEPT for the current page?

    How to vertically center text next to a radio button

    fa-star () is always yellow, how to make it white?

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

    How to stack text with pure CSS?

    How to pull out CSS attributes from inline styles with BeautifulSoup

    How to swap two button elements using float in CSS

    How to use the compass transition mixins with a translateX property and autoprefixer?

    How to hide specific TD borders in a TABLE using CSS

    How should I start to learn JavaScript, jQuery, etc.? My programming knowledge is zero [closed]

    How to do this specifically things in CSS for a table

    How to get rid of white space between css horizontal list items? [duplicate]

    How to create a nested vertical menu with horizontally sub-menus using css

    how to go bottom of a website like back to top using javascript?

    How to Center Text in a JavaScript Function?

    How to fix maximum width of a div? If contents of that div's exceeds than maximum width, we get scroller?

    How to make shapes with CSS which have borders?

    How to put an image in div with CSS?

    How to add an unknown amount of dots to a line depending on length of word?

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

    How to show one element when click on the another element with css?

    How can I add CSS to a form in Rails when the form is rendered in two different locations?

    How to create and style dropdown menus using the wordpress menus section? [closed]

    How can I reduce ons-list-item height?

    How to Horizontally Scroll Images In Single Line

    how can i create true loop?