>
> Is it possible to exclude the header file from the cascading style
sheet rules?
>
>
If you wrap your body content with a div tag of id="content", then you
can write the following rule ...
#content a { color: red; text-decoration: none; font-weight: bold; }
that applies only to <a> tags that are nested within a tag of
id "content". For example, ...
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#content a { color: red; text-decoration: none; font-weight: bold; }
#content a:hover { color: #FF9966; text-decoration: underline; }
</style>
</head>
<body>
<div id="header">This is my header with some <a href="#">few</a>
links.</div>
<div id="content"><hr />
<p>
This is my main content with <a href="#">a link</a>. Do a view source
to see how I constructed my css rule such that the rule only applies to
the content and not the header.
</p>
</div>
</body>
</html>
-artcoder (at)
http://webmarksonline.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/