|
-
Nov 1st, 2002, 10:54 AM
#1
Thread Starter
Member
Mouseover, change text underline
whats the code so that when i want to put my mouse over a hyperlink, it is automatically underlined? Kinda like on this page
http://www.avault.com/
how do u do that?
-
Nov 1st, 2002, 11:26 AM
#2
Frenzied Member
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
.coolLink {text-decoration:none;}
.coolLink:hover {text-decoration:underline;}
</style>
</HEAD>
<BODY>
<a class="coolLink" href="blah.com">mouse over me</a>
</BODY>
</HTML>
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Nov 1st, 2002, 11:54 AM
#3
Thread Starter
Member
wow, sweet, thanx!
that was easy enough
-
Nov 1st, 2002, 11:57 AM
#4
Thread Starter
Member
actually, how would i insert it into pre-existing code already?
<a style="text-decoration: none" target="_blank" href="http://student.csv.cmich.edu/">
<font color="#660033" style="font-size: 11pt">My Webmail</font></a><font style="font-size: 11pt"><br />
· </font>
thats an example of a hyperlink I already have. How can I modify that without deleting anything?
-
Nov 1st, 2002, 12:14 PM
#5
Frenzied Member
just stick in the style part (inbetween the /title and the /head). and add the class to the link.
example:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
.coolLink {text-decoration:none;}
.coolLink:hover {text-decoration:underline;}
</style>
</HEAD>
<BODY>
<a class="coolLink" target="_blank" href="http://student.csv.cmich.edu/">
<font color="#660033" style="font-size: 11pt">My Webmail</font></a><font style="font-size: 11pt"><br />
· </font></a>
</BODY>
</HTML>
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Nov 1st, 2002, 12:15 PM
#6
Frenzied Member
oh, you have to take out the 'style="text-decoration:none;"' from the link itself cos it will override the class.
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|