haan
12-22-2003, 03:28 AM
In the HTML below I would like to use the H1 for a link with hover effect onmouseOver (as it is done below with class=link1). But I don't know how to to that. Can anyone help?
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Welcome to Adobe GoLive 4</title>
<style type="text/css"> <!--
H1 { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; }
a.link1:link { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:active { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:visited { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:hover { color: #ffae06; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
-->
</style>
</head>
<body>
<a href="(Empty Reference!)" class="link1">Text1 with link</a>
<br><br>
<a href="(Empty Reference!)" class="H1">Text2 with link; this doesn't work! </a>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Welcome to Adobe GoLive 4</title>
<style type="text/css"> <!--
H1 { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; }
a.link1:link { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:active { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:visited { color: #4c5ea1; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
a.link1:hover { color: #ffae06; font-size: 32px; font-family: Arial; text-align: left; text-decoration: none; line-height: 32px; }
-->
</style>
</head>
<body>
<a href="(Empty Reference!)" class="link1">Text1 with link</a>
<br><br>
<a href="(Empty Reference!)" class="H1">Text2 with link; this doesn't work! </a>
</body>
</html>