Adding a Banner or Title Frame
Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008
0
Add a row to the top for a title and graphics with the code as follows:
Example:
- <html><head></head>
- <frameset rows=”20%,*”>
- <frame src=”title.html”>
- <frameset cols=”30%,*”>
- <frame src=”menu.html”>
- <frame src=”content.html”>
- </frameset>
- </html>
frameset rows=”#%, *”- rows defines the height that each frame will have. In the above example we chose the new title (the 1st row) to be 20% of the total page height and used a “*”, which means that menu and content (which are the 2nd row) will use the remaining height.
FrameBorder and FrameSpacing
Frameborder and framespacing attribute are used to manipulate the borders and the spacing between the frames. These attributes appear in the frameset tag.
Note: Framespacing and border are the same attribute, but some browsers only recognize one or the other, so use both, with the same value, to be safe.
· frameborder=”#” – A zero value shows no “window” border.
· border=”#”- Modifies the border width, used by Netscape.
· framespacing=”#” -Modifies the border width, used by Internet Explorer.
Example:
- <html><head></head>
- <frameset border=”0″ frameborder=”0″ framespacing=”0″ rows=”20%,*”>
- <frame src=”title.html”>
- <frameset border=”0″ frameborder=”0″ framespacing=”0″ cols=”30%,*”>
- <frame src=”menu.html”>
- <frame src=”content.html”>
- </frameset>
- </html>
Frame Borders:
- Here’s a visual:Visual
