HTML and CSS Reference
In-Depth Information
The cols attribute
defines the num-
ber of vertical
frames or columns
in a frameset.
Because you're designing web pages for users with various screen
sizes, you should use absolute frame sizes sparingly. Whenever
you do use an absolute size, ensure that one of the other frames
is defined using an * to take up all the remaining screen space.
To define a frameset with three columns of equal width, use
cols=“*,*,*” . This way, you won't have to mess around with
percentages because frames-compatible browsers automatically
assign an equal amount of space to each frame assigned a
width of * .
The rows Attribute
The rows attribute works the same as the cols attribute, except that it splits the screen
into horizontal frames rather than vertical ones. To split the screen into two frames of
equal height, as shown in Figure 17.9, you would write the following:
<!DOCTYPE html>
<title> Two Rows </title>
<frameset rows=”50%,50%”>
<frame src=”toprow.html”>
<frame src=”bottomrow.html”>
Search WWH ::

Custom Search