HTML and CSS Reference
In-Depth Information
.
Output
FIGURE 17.8
The cols attribute
defines the num-
ber of vertical
frames or columns
in a frameset.
NOTE
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.
17
TIP
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:
Input
<!DOCTYPE html>
<html>
<head>
<title> Two Rows </title>
</head>
<frameset rows=”50%,50%”>
<frame src=”toprow.html”>
<frame src=”bottomrow.html”>
</frameset>
</html>
 
 
Search WWH ::




Custom Search