HTML and CSS Reference
In-Depth Information
NOTE
If you turn off the border, frames-compatible browsers won't dis-
play its default three-dimensional border. However, a space will
still be left for the border.
For example, the following code adds a deep red border around the middle frame in the
frameset using CSS:
<!DOCTYPE html>
<html>
<head>
<title> The FRAME Tag </title>
<style type=”text/css” media=”screen”>
frame.middle {
border-top: 3px solid #cc3333;
border-bottom: 3px solid #cc3333;
}
17
</style>
</head>
<frameset rows=”*,*,*”>
<frame frameborder=”0” src=”document1.html”>
<frame frameborder=”0” class=”middle” src=”document2.html”>
<frame frameborder=”0” src=”document3.html”>
</frameset>
</html>
As you can see, you can use classes (and IDs) with frames just as you can with other
HTML elements. Of course, there's room for confusion when borders are defined. In the
following frameset definition, a conflict arises because the top frame has the frame bor-
der enabled, but the middle frame does not. In this case, if either frame has the border
turned on, it is displayed.
<!DOCTYPE html>
<html>
<head>
<title> The FRAME Tag </title>
</head>
<frameset rows=”*,*,*”>
<frame frameborder=”1” src=”document1.html”>
<frame frameborder=”0” src=”document2.html”>
<frame frameborder=”0”
src=”document3.html”>
</frameset>
</html>
 
Search WWH ::




Custom Search