bordercolor
attribute in either the <frameset>
or <frame>
start tags. When used in the <frameset>
tag, bordercolor
affects the borders of all frames in that particular frameset. When used in the <frame>
tag, bordercolor
affects only the borders in that particular frame. The value can be any valid color expression.<html>
<head>
<title>HTML Frames - An Advanced Frame Layout</title>
</head>
<frameset rows="20%,80%" framespacing="10" border="10">
<frame src="headercolor.htm" bordercolor="black">
<frameset cols="25%,75%" frameborder="no">
<frame src="menucolor.htm" name="menu">
<frame src="chapter1.htm" name="content">
</frameset>>
</frameset>
</html>
frameborder
attribute is omitted in the primary <frameset>
tag then the default is frameborder="yes"
(all frame borders are rendered). The framespacing="10"
attribute/value pair renders a 10 pixel border in Internet Explorer and Opera while the border="10"
attribute/value pair renders a 10 pixel border in Gecko-based browsers.bordercolor="black"
in the first <frame>
tag renders the top frame row border black in Internet Explorer and Gecko-based browsers (bordercolor
is not supported in Opera).frameborder="no"
attribute/value pair in the nested <frameset>
tag turns off all frame borders in the bottom frame row (which is split into two columns). marginwidth
and marginheight
attributes in your <frame>
tags. The marginwidth
attribute will set the amount of white space to be displayed on the left and right side of your frame's contents while the marginheight
attribute sets the amount of white space to be displayed on the top and bottom. The value is a number specifying the width or height in pixels.<html>
<head>
<title>HTML Frames - An Advanced Frame Layout</title>
</head>
<frameset rows="20%,80%" framespacing="10" border="10">
<frame src="headercolor.htm" bordercolor="black">
<frameset cols="25%,75%" frameborder="no">
<frame src="menucolor.htm" name="menu">
<frame src="chapter1.htm" name="content"
marginheight="30" marginwidth="50">
</frameset>>
</frameset>
</html>
<frame>
tags. These are detailed in the following:
noresize
~ The default setting in HTML frames permits the user to resize any frame by hovering the mouse pointer over the frame border and then clicking-and-dragging. Inserting the noresize
attribute in any <frame>
tag will disable resizing in that frame.scrolling="yes|no|auto|"
~ Frames automatically display horizontal or vertical scrollbars whenever the frame's content outsizes the allotted dimensions of that particular frame. If the frame's content fits within the allotted dimensions, however, then no scrollbars are displayed. This is the default setting for frames and is the same as using the scrolling="auto"
attribute/value pair. If you wish to always display scrollbars in a particular frame then use scrolling="yes"
. If you wish to always hide scrollbars in a particular frame then use scrolling="no"
.
Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates
See also:
If you need a .COM web address, you can get one quick and easy at...
<~ BACK | TOP | NEXT ~> |