Styling Links using CSS Stylesheets
Links can be styled with any CSS property (e.g. color, font-family, background, etc.). Links can be styled differently depending on what state they are in. The four links states are:
When setting the style for several link states, there are some order rules to follow:
Adding Color to your links.Web colours are distinguished by Hash Sques however simple colors can be used such as white, red, black etc in the example below we are using a:link {color:#FF0000;} /* unvisited link - Red */ Text DecorationThe text-decoration property is mostly used to remove underlines from links: but there are other options such as “none, underline, overline, line-through, blink” The default option on your website is “underline” to remove the underline state simply add text-decoration:none; to your link attribute a:link {text-decoration:none;} Background ColorThe background-color property specifies the background color for links: a:link {background-color:#B2FF99;} Other Attributes you can use for your links arefont-size 10px, 12px, 14px etc
|
The Dafault link isExample using all elementsCopy the Code below and past it into your Stylesheet, Please feel free to edit or delete any style or attribute that you do not require |