Paul Furman wrote:
> OK this works. I don't know if it validates.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <head>
> <title>hovering over div border</title>
> <style>
>
> * {border:0px;}
> /* these link styles are necessary to make the link styles apply to the
> div later on */
> a:link {color: #339966;}
> a:visited {color: #339966;}
> a:hover {color: #123456;}
>
> a:link hr {height:1px; color: #339966; background-color: #339966;}
> a:visited hr {height:1px; color: #339966; background-color: #339966;}
> a:hover hr {height:1px; color: #123456; background-color: #123456;}
>
>
> </style>
> </head>
> <body>
> <a href="#">
>
> <span class="left">
> left text
> </span>
>
> <hr>
>
> <span class="center">
> centered text
> </span>
>
> </a>
> </body>
> </html>
It doesn't, because you still have the <hr> inside the <a>
element.
But I found a way:
Just pick any small gif for the image.
Uploaded again:
http://home.tiscali.nl/~elizabeth/Paul.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>hovering over 'hr'</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
* {border:0px;}
a:link {color: #339966; text-decoration:none;}
a:visited {color: #339966;text-decoration:none;}
a:hover {color: #123456;text-decoration:none;}
a:link img {border-bottom:5px solid #339966;}
a:visited img {border-bottom:5px solid #339966;}
a:hover img {border-bottom:5px solid #123456;}
div {text-align:center;}
..left {position:absolute; left:10px;}
img {height:0px;width:100%;}
</style>
</head>
<body>
<div>
<a href="#">
<span class="left">
Left aligned text</span>
<br>
<img src="hr.gif" alt="">
Centered text
</a>
</div>
</body>
</html>
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.