using CSS in links
Posted: Wed Feb 25, 2004 7:05 am
Hi everyone - I have a problem concerning the use of CSS in PHP links. I have set up the following:
<head>
<style>
A.Link:link { color: blue; text-decoration: none;}
A.Link:visited { color: #000080; text-decoration: none;}
A.Link:hover { color: black;}
A.Link:active { color: #000080;}
</style>
</head>
and am trying to use it in
echo '<a href="databases.php?database='.$db.'" class="Link">';
echo $db;
echo '</a><br>';
although the link does change colour when the cursor hovers over it, the link is still underlined when it's displayed on the page when I've clearly stated that it shouldn't be.
However, if I try to use the css class in basic html it works perfectly. Can anyone help me with this problem? Obviously I need to use it within PHP as I'm calling PHP variables within it but it doesnt seem to be working with me!!!
Thanks in advance!!
<head>
<style>
A.Link:link { color: blue; text-decoration: none;}
A.Link:visited { color: #000080; text-decoration: none;}
A.Link:hover { color: black;}
A.Link:active { color: #000080;}
</style>
</head>
and am trying to use it in
echo '<a href="databases.php?database='.$db.'" class="Link">';
echo $db;
echo '</a><br>';
although the link does change colour when the cursor hovers over it, the link is still underlined when it's displayed on the page when I've clearly stated that it shouldn't be.
However, if I try to use the css class in basic html it works perfectly. Can anyone help me with this problem? Obviously I need to use it within PHP as I'm calling PHP variables within it but it doesnt seem to be working with me!!!
Thanks in advance!!