Wednesday, November 10, 2010

SETTING LINK PROPERTIES WITH CSS - To set colors of links in the css set this code :

a:link {
color:purple; /*Unvisited link color*/
text-decoration:none;
}
a:visited { /*visited link color*/
color:red;
text-decoration:none;
}
a:hover { /*color on mouseover*/
color:yellow;
text-decoration:underline;
}

Only certain colors are recognized by name. To set other colors you will have to specify the hexadecimal number for the color. You can set the hexadecimal color by using this type of code :

a:link {
color:#0000ff; /*Unvisited link color*/
text-decoration:none;
}

1 comment:

  1. Please send NIC sample paper to my email:prem7225@gmail.com
    Thanks
    Prem

    ReplyDelete

Thank you for your Comment....

Popular Posts