Powered by InterCreatives | Site Map
Search:
NewSourceMedia Popular Tutorials: PHP Javascripts Web Hosting
SoftwareTutorials
CATEGORIES
Job Listings
 
Home / CSS / Effects

Change CSS A HREF Link Styles


Question: How do I change hyperlink color/style of my html links?

Answer: You can do this by adding CSS to your web page. Try the following to change the a href tages:

<style type="text/css">

<!—
a:link {
         color: #333333;
         }
a:visited {
         color: #FFFFFF;
         }
a:hover {
         color: #CCCCCC;
         background-color: #333333;
         text-decoration: none;
         }
a:active {
         color: #333333;
         }
-->

</style>

a:link is the links color
a:visited is the color for all links clicked
a:hover is the link style when your mouse hovers over the link.
A:active is the color when the link is active.

If you just want to make a simple color change to all your web links, just do:

 <style type="text/css">

<!—
a { color: #0099ff; }
-->

</style>

In other words, all links should be #0099ff or what ever color you chose regardless if you’ve visited or are hovering over a link or not.

 


Next CSS Page:
1  2  [3] 





Hosting by iPowerWeb.com - 50 Gb for $7.95