Game Development Reference
In-Depth Information
Mirum est notare quam littera gothica, quam
nunc putamus parum claram, anteposuerit
litterarum formas humanitatis per seacula
quarta decima et quinta decima. Eodem modo
typi, qui nunc nobis videntur parum clari,
fiant sollemnes in futurum.</p>
</div>
With the preceding setup, the browser knows that we wish to render our text into four
columns, with 20 pixels separating each column on the sides. Observe that no men-
tion is ever made about how wide to make each column. In this case, the browser
calculates the space available inside the div container, subtracts the total width
needed for the column gap (the space between two columns, not including the space
between a column and the container), then divides the remaining width into the total
number of columns. This way, as we resize the browser window, the columns will
automatically resize and everything else will retain its dimensions.
After we specify a column gap width, the browser can determine how wide to make
each column (if we specify a fixed number of columns) or a number of columns to
display (if we specify a width for each column) based on the available space for the
columns, as shown in the following screenshot. It doesn't normally make sense to
specify both a column width and a number of columns.
Search WWH ::




Custom Search