CSS Instant Results (Programmer to Programmer) by Richard York

Text in the first column.

2007 02:04:43] Code and Code Explanation secondary columns, and in order for the secondary columns to grow and shrink with minimum and maximum constraints, there would also need to be minimum and maximum margins on the content

, which is something that CSS does not currently offer. Alternatively, percentage width can be applied to the columns, and percentage margins applied to the content

, which will achieve a similar effect, but still without the possibility of defining minimum and maximum constraints, which are often desired on liquid designs to prevent the design from breaking.

That height is the space left over after margin, borders, and padding have been applied. Next, here again a border and background are specified to clarify the dimensions of the two columns. Then both columns are given a fixed width of 200 pixels. This is done because in designs such as this one it is not possible to create columns that can shrink and grow with increases in screen real estate. The crux of this concerns how the content column is styled. 2007 02:04:43] Code and Code Explanation secondary columns, and in order for the secondary columns to grow and shrink with minimum and maximum constraints, there would also need to be minimum and maximum margins on the content

, which is something that CSS does not currently offer.

Download PDF sample

Rated 4.14 of 5 – based on 48 votes