How to make a stable two column layout in HTML/CSS

前端 未结 3 594
孤街浪徒
孤街浪徒 2020-12-07 10:28

I want a container with two columns. Details:

The container

  • Width should adjust to 100% of its parent element (easily accomplished).
  • Height
3条回答
  •  臣服心动
    2020-12-07 10:32

    Piece of cake.

    Use 960Grids Go to the automatic layout builder and make a two column, fluid design. Build a left column to the width of grids that works....this is the only challenge using grids and it's very easy once you read a tutorial. In a nutshell, each column in a grid is a certain width, and you set the amount of columns you want to use. To get a column that's exactly a certain width, you have to adjust your math so that your column width is exact. Not too tough.

    No chance of wrapping because others have already fought that battle for you. Compatibility back as far as you likely will ever need to go. Quick and easy....Now, download, customize and deploy.

    Voila. Grids FTW.

提交回复
热议问题