Want to have just a section of your page print?

Here I'm using a hidden frame and only the contents of that will print.
It's a way to have just sections of your page print if you wanted.

  • HEIGHT="--": This defines the frame's height, in pixels or percentage.
  • WIDTH="--": This defines the frame's width, in pixels or percentage.
  • MARGINWIDTH="--": This sets the margin width in either pixels or percentage.
  • MARGINHEIGHT="--": This sets the margin height in either pixels or percentage.
  • SCROLLING="--":If the information inside the frame is too long to display, then a scroll bar will appear.
  • You can stop it by adding this command set to"no."
  • ALIGN="--": This where text will appear when surrounding the frame.
  • FRAMEBORDER="0" Makes the frame dissapear
  • NORESIZE: Add this, and the user will not be able to resize your frame.

This is  what the code does. It's all in the "HOW" text.

There are two iframes on this page. The left has the frame border removed and the other a border the frame and scolling turned on, so you can actually see what is going on.
The idea here is to bring something up in a frame that you want printed from a page. Plus a way to have different frames with differnet looks and contents linked to them. There are a ton of different ways you could use this.

<A href="PAGE1.html" Target=left  name=PAGE1>Left Page 1</A>

<IFRAME SRC="PAGE1.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" width=200 height=100 NAME="left" ></IFRAME>

This is the code you put in the HTML object for an iFrame

This is the easiest way to target a iFrame in WS4. Drag the actual page link from the "site links" gallery onto your text. Then right click and use "edit HTML" then paste in your target="NAME" like below in the iFrame code. 

You'll see a link coded like above and you'll add the target like below.

<A href="PAGE1.html" name=PAGE1>Left Page 1</A>

Try these links

Preview the whole site for the iFrames to work "F5"

This page last modified on Sunday, February 05, 2006

The two frame sizes are 200 x 100