Hi,
I know how to hyperlink a normal text by using
%26lt;a href="link"%26gt;text%26lt;/a%26gt;
But how do you hyperlink a text where the underline only appears when you onmouseover it? Like the Sign Out or My Account on top of the Yahoo! Answers page. Hope there is an expert out there who can help. Thanks a lot.
How do you hyperlink a text like this using HTML or others?
Use CSS to define a class for the desired link properties, like so:
%26lt;style%26gt;
a.tclass:link {text-decoration: none;}
a.tclass:visited {text-decoration: none;}
a.tclass:active {text-decoration: none;}
a.tclass:hover {text-decoration: underline;}
%26lt;/style%26gt;
Then call the class in the link:
%26lt;a href="" class="tclass"%26gt;text to link%26lt;/a%26gt;
And bone up on CSS:
http://www.w3schools.com/css/default.asp
Reply:You can use CSS.
Between the %26lt;HEAD%26gt; and %26lt;/HEAD%26gt; tags, write this:
%26lt;STYLE type="text/css"%26gt;
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:hover {text-decoration: underline}
A:active {text-decoration: none}
%26lt;/STYLE%26gt;
Link is a plain link (usually navy blue)
Visited is a link that's already been clicked upon (usually purple)
Hover is when you have a mouseover state
Active is a link when you click on it (red, but not used much anymore)
Reply:Cascading Style Sheets (CCS) can be used for this. What you'll do is set one style for regular links and one for links with a mouse over them. Do as the other answerer said and google a web tutorial.
Reply:That can be done with CSS. Check out some web tutorials.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment