No they don't. With CSS you can style any link anywhere.
Example HTML:
Code:
<a href="#">Some anchor</a>
<div><a href="#">Some other anchor</a></div>
<div><p><a href="#">Yet another one</a></p></div>
Example CSS: (goes within <head>)
Code:
<style type="text/css">
<!--
a { color: #FF0000;}
div a { color: #00FF00;}
div p a { color: #FFFF00;}
-->
</style>
The CSS example I've given is an embedded style sheet. The lines within the comments could also be pasted into a blank notepad file and saved as a .css file. In that case you'd have an external stylesheet which needs to be linked to a document by putting
Code:
<link href="urltocssfile.css" rel="stylesheet" type="text/css" />
into the head section of your HTML file.
Last edited by ghettobert; 09-20-2006 at 06:28 PM..
|