Recent Posts

Home » » Creating links with mouseover effect

Creating links with mouseover effect

Written By Ankit Sharma on Monday, February 3, 2014 | 1:25 PM


I was on Gtalk when I asked how to create a link that changes color when the mouse passes over it.
This effect is very simple and easy to accomplish with a little thing called CSS  Cascade Style Sheet, is less complicated than it seems. Come on.

If you use blogger go: Layout -> Edit Html

Enter the code shown below before the tag </ HEAD> tags of your website:


<style type="text/css">
a:link {
color:#6131BD;
text-decoration:none;
}
a:visited {
color:#cc0000;
text-decoration:none;
}
a:hover {
color:#333333;
text-decoration:underline;
}
</style>
where:

a: link - which assigns the color and type of text to be shown in the link (none, bold, underline, etc.).

TO visit - assign color and type of text to be shown on a link has already been visited by the user.

a: hover - here it comes the magic. The color attribute determines the color that your link will stay when the user hovers the mouse over it and the text-decoration will determine the type of the text.
While researching more on the subject found alternatives for this code in a blog called Tip of the Day (at least that's the title that is at the top):

0 comments:

Post a Comment

About Me

Contact us

Name

Email *

Message *

Technology

Recent News

Follow WahmTech Central

 

Comments

Change your language

About Me

Sponsor

Recent

Connect With us

Popular Posts

Powered by Blogger.

Blog Archive

Followers

Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Archive

Post Top Ad

Responsive Ads Here

Contact


Breaking

Fashion

Music

News

Sports

Food

Technology

Featured

Videos