Frames

Section 1 - Introduction
Section 2 - Basics
Section 3 - Next Level
Section 4 - Advanced
      Fancy Lists
      Forms
      Advanced Tables
      Frames
         About frames
         Frameset
         Frame source & name
         Nesting Frames
         Target & Noframes
         Frameset borders, etc.
         Scrolling & Resizing
         Margin width, borders
         IFrame
         Should you? Try it
      Style Sheets
      Image Maps
Section 5 - Publishing
Section 6 - Extras
Appendices
Marginwidth

You can set how much "padding" is around your text or document by setting the marginwidth. This command falls inside the <frame> command. Let's suppose you want a huge amount of padding in one frame and nearly no padding in another frame. Here's what that would look like:
<html>
<head></head>
<frameset cols="50%,*">
      <frame src="cool.html" MARGINWIDTH=1>
      <frame src="cool.html" MARGINWIDTH=50>
</frameset>
</html>
That code produces this page.

Frameborder

You can specify whether a certain frame will have a border or not. This is very similar to the "frameborder=no" command found in the <frameset> tag, but this only designates the frame you tell it to. Here's an example of the code:
<html>
<head></head>
<frameset cols="33%,33%,*">
      <frame src="cool.html" FRAMEBORDER=YES>
      <frame src="cool.html" FRAMEBORDER=NO>
      <frame src="cool.html" FRAMEBORDER=NO>
</frameset>
</html>
That code produces this page.

Bordercolor

You can change the colors of the borders on your page. If you wish to change all of the borders on your page, you would put this command within the <frameset> tag. Here's an example of how this would work:
<html>
<head></head>
<frameset cols="33%,33%,*" BORDERCOLOR="purple">
      <frame src="cool.html" >
      <frame src="cool.html" >
      <frame src="cool.html" >
</frameset>
</html>
That code produces this page.

You can also change the colors of the individual frame borders using the bordercolor command. Sometimes this causes glitches, but it does ake your page more colorful. Let's look at the code:
<html>
<head></head>
<frameset cols="33%,33%,*">
      <frame src="cool.html" BORDERCOLOR="red">
      <frame src="cool.html" BORDERCOLOR="ffff00">
      <frame src="cool.html" BORDERCOLOR="000099">
</frameset>
</html>
That code produces this page.

As you can see, these things aren't that necessary, but they're nice to have. That's about all there is to know about frames. But are they needed? Go to the next lesson.
Back Home Forward