Results 1 to 6 of 6

Thread: Mouseover, change text underline

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    40

    Unhappy 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?

  2. #2
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    40
    wow, sweet, thanx!

    that was easy enough

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    40
    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 />
    &nbsp;&nbsp;· </font>

    thats an example of a hyperlink I already have. How can I modify that without deleting anything?

  5. #5
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  6. #6
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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
  •  



Click Here to Expand Forum to Full Width