Link Style With CSS

Color and Background Link

can also be replaced colors and background. Now we will create links with black and when the mouse goes to the link, link text color will change to red and black background. Make the script as follows.

<title>Color and Background Link</title>
<style type="text/css">
body {font-family:Verdana; font-size:16px;
      text-align:center; font-weight:bold;}
a:link { color:#000000;}
a:visited { color:#000000;}
a:active { color:#000000;}
a:hover { color:#FF0000;background-color:#000000;}
<p><a href="#">HOME </a></p>
<p><a href="">ABOUT </a></p>
<p><a href="">CONTACT </a></p>

Color and Background Link: to make a little change in style, obtained by the various forms such as link and background color as desired.


Post a Comment