|
|
Home » HTML » Article
|
|
| Viewed: 27675 times |
Rating (40 votes): |
|
2.9 out of 5 |
|
|
|
HTML Advanced Frames
So you've used simple frame navigation. What else can you do with them?
There are actually quite a list of attributes to the FRAMESET and FRAME tags,
which help you control your layout with things like spacing margins and color.
FRAMESET attributes
Any attribute in the main FRAMESET tag affects all the frames contained within it.
- FRAMEBORDER="2" sets the width of the frame border in pixels.
- BORDER="1" does the same, but for Netscape. You can use them both to cover all your options.
- FRAMESPACING="4" denotes the distance between frames, in pixels.
- BORDERCOLOR="blue" gives the frame a tasteful bespoke colour (; The thickness of the border
depends on what you entered in the BORDER attribute above.
Invisible Frames
If you want frames, but don't like the default borders and would prefer invisible 'seamless' frames, simply set
FRAMEBORDER, FRAMESPACING and BORDER attributes to 0.
FRAME attributes
Any attribute in the FRAME tag of course affects only the frame itself.
- FRAMEBORDER="2" sets the border thickness around that frame in pixels.
- FRAMESPACING="2" sets the amount of blank space around this frame.
- MARGINHEIGHT="2" sets the margin from the top and bottom of the frame for the content of the frame. The amount set here gets added onto any amount set in the FRAMESET tag.
- MARGINWIDTH="2" sets the margin from the sides. Similarly this gets added on to any amount set in the FRAMESET.
- SCROLLING="yes" allows or prohibits the frame from scrolling if the contents will not all fit into the viewable area.
Attributes are "yes" or "no". If you don't let it scroll, be careful, as people with low resolutions may not be able to see all of your page. If you know what you're doing though, it can ensure you have full control of how your content looks.
- NORESIZE stops the user from being able to resize the frame. Simply write NORESIZE within the frame tag all by itself (no value needed).
- BORDERCOLOR="blue" gives the individual frame a bespoke border colour.
|
|
View highlighted Comments
User Comments on 'HTML Advanced Frames'
|
Posted by :
Archive Import (no one) at 23:26 on Sunday, May 25, 2003
|
u have to add a pic of the frame so people know what your talking about
| |
Posted by :
Archive Import (Squall Strife) at 21:48 on Tuesday, August 19, 2003
|
Go to this site to see some good examples or frames: http://infoff.cjb.net.
| |
|
To post comments you need to become a member. If you are already a member, please log in .
| RELATED ARTICLES |
Image Submit Button by Jeff Anderson
You can keep your forms from slipping into mundanity by substituting the default gray submit button to a colourful graphic of your choosing. |
 |
Parent _self _blank and _top Frame Target Specifications by Jeff Anderson
How to specify frames and how to break out of them using standard link tags. |
 |
Image Rollovers by Jeff Anderson
A bit of code to swap to different images on the page. You often see this on sites
to display a rollover on the navigation buttons. |
 |
Pre Tag by Jeff Anderson
No need to reformat text files with line breaks and tabs if you use the pre tag |
 |
ASCII characters and their codes by Jeff Anderson
A full list of all the ASCII characters. |
 |
In-Line Frames (IFrames) by Jeff Anderson
Inline frames or IFrames are the ones which appear in the midst of a standard page, but actually reference a totally separate url. |
 |
Validate Date by Kannadasan Ramiah
Validating Date entered in a text box, pure HTML page |
 |
HTML Hspace and Vspace Image Borders by Jeff Anderson
A lesser known feature in HTML is the ability to add a blank border around images both horizontally and vertically. |
 |
Creating Navigation with Frames by Jeff Anderson
The most popular use of frames is to allow a static navigation to stay on one part of the screen (in one frame) while the content changes in another. |
 |
The OSI Reference Model - A Clear and Concise Illustration ! by James Opiko
The OSI Reference Model - A Resource For IT Certification Candidates & Networking Professionals |
 |
| |