Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Nested Frames

By nesting one <frameset> within another, you can create rather complex frame layouts. For example, the document shown in Figure 21.5 and listed in Figure 21.6 has a total of nine frames. A cols frameset is used to split each row of the rows frameset into three pieces.

21fig05.jpg

Figure 21.5 This window contains nine frames, some of which are nothing more than blank pages with custom background tiles.

21fig06.gif

Figure 21.6 To create Figure 21.5, I used three horizontal <frameset>s within a vertical <frameset>.

Figure 21.7 lists the HTML for all nine of the separate Web pages shown in Figure 21.5. The corners and side frames contain blank HTML documents, showing nothing more than specially designed background tiles. The top frame is a permanent title graphic, and the bottom frame is a navigation bar similar to the one shown in the previous example. The net effect is to surround the middle frame within a sort of "picture frame" border. Figure 21.8 shows thumbnails of all the background tiles and other graphics incorporated into the pages.

21fig07.gif

Figure 21.7 These are the nine separate HTML documents shown in Figure 21.5 and referred to in Figure 21.6.

21fig08.jpg

Figure 21.8 To create the border effect in Figures 21.5 and 21.10, I designed several custom background tiles and matching title graphics.

Share ThisShare This

Informit Network