That was so much fun I think we'll do it again! Let's divide Lisa horizontally into 3 sections. The top window needs to be 50 pixels high. The other two can be split equally. We will put Lisa into all three. Here are all the changes in one big chunk.
<FRAMESET COLS="50,*,2*"> <FRAMESET ROWS="50,*,*"> <FRAME SRC="lisa.html"> <FRAME SRC="lisa.html"> <FRAME SRC="lisa.html"> </FRAMESET> <FRAME SRC="terri.html"> <FRAMESET ROWS="50%,50%"> <FRAME SRC="kim.html"> <FRAME SRC="tina.html"> </FRAMESET> </FRAMESET>
I know it doesn't look like much. Actually if a page was divided up that much it would look pretty crappy. A good rule of thumb is don't have more than 3 frames on your page. If you can avoid them altogether, that's even better.
Now's also a good time to think about the poor folks that are using non frames capable browsers. Although most, if not all of your visitors will be able to see frames, there is a minority that's surfing the web with outdated or special equipment. If you would like to help these folks out you can write a non frames version of your main page and add it within the main <FRAMESET> tag pair thusly...
<FRAMESET COLS="50,*,2*"> <FRAMESET ROWS="50,*,*"> <FRAME SRC="lisa.html"> <FRAME SRC="lisa.html"> <FRAME SRC="lisa.html"> </FRAMESET> <FRAME SRC="terri.html"> <FRAMESET ROWS="50%,50%"> <FRAME SRC="kim.html"> <FRAME SRC="tina.html"> </FRAMESET> <NOFRAMES> <BODY> Put your non-frames page down here. If someone is using an old browser, it will skip everything above and come straight down here. Frames-capable browsers will ignore what is between the <NOFRAMES> tags. You may be asking a couple questions right now. * Do I have to write a whole nuther page? Probably. * How many people will be missing my page if I don't do this? Very few. * Do you think I should worry about it? Nope. * Do you worry about it? Nope. * Why did you put it in this tutorial? Because it's a major feature and I wanted you to at least know about it. * Are you always this witty and charming? Of course. </BODY> </NOFRAMES> </FRAMESET>
Note - My personal opinion aside, there is a strong argument for using the <NOFRAMES> tag. A few businesses are still using older, non-frames capable browsers. The handicapped's screen readers have a really hard time with frames. And those outside the US are sometimes left out of framed pages for various reasons. The bottom line is, if your page is "frames only" you will be cutting off a few people. If it is important to you to reach absolutely everyone with the least amount of potential problems, then take the time to use the <NOFRAMES> tag. My thanks to Matthew Miller, of the HTML Writers Guild for pointing this out. |
<< BACK NEXT >> |