Adding Columns
Framesets support columns and rows. In this section, you'll add columns to your frameset. You begin by setting up the two-column frame page.
The cols attribute for the frameset element gives you three value options:
-
Numeric value in pixels, such as
cols="200". This results in a 200-pixel column. -
Percentage value, such as
cols="75%". A percentage value results in the column being 75% of the available browser space. -
Dynamic value, represented by an asterisk, as in
cols="*". This means that the column will dynamically resize to the available browser space.
Example 6-4 shows a frameset document used to create the two-column look we're after.
You'll note that I've also added frame elements.
To create a frame page, you need ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access