A element or you can apply them to advanced selectors using link and dynamic pseudo-classes. These include the following:| Property Name | Some Possible Values | What It Does |
|---|---|---|
| text-decoration | underline | overline | none | Is the link text underlined? |
| cursor | crosshair | default | help | Sets the mouse pointer style |
| background | (Any color) | Rollover background color |
| display | block | inline | Set link as block element? |
A element with a special suffix known as a pseudo-class. These are described in the following:A:link - The A element combined with the :link pseudo-class can be used to set what CSS properties are applied to a hyperlink that has not been visited. Example:A:link {color: blue;}A:visited - The A element combined with the :visited pseudo-class can be used to set what CSS properties are applied to a hyperlink that has been visited. Example:A:visited {color: purple;}A:active - The A element combined with the :active pseudo-class can be used to set what CSS properties are applied to a hyperlink that is currently being activated (clicked). Example:A:active {color: red;}A:hover - The A element combined with the :hover pseudo-class can be used to set what CSS properties are applied to a hyperlink when the user's mouse pointer hovers over it. Example:A:hover {color: red;}underline - This will underline your hyperlink text.overline - This will apply a line on top of your hyperlink text.none - This will remove the underlining normally applied to hyperlink text.A {text-decoration: none;}
cursor property to define the style of mouse pointer displayed when the user hovers over a hyperlink (cursor can also be used with other elements). Some possible values are:A:hover selector to apply a background color when the user hovers over your hyperlinks (which is kind of cool).A:hover {background: yellow;}
display property is especially useful for turning hyperlinks into block elements. This will then allow you to apply dimensions like width, height and padding in order to make the clickable area of your hyperlink as big as you want. Here's an example:<a style="display: block; width: 150px; border: 1px solid black; padding: 10px; background: yellow; text-decoration: none;" href="#display">This entire yellow box is a hyperlink. You can click anywhere inside it.
</a>
Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates
See also:
Best Free Web Hosting
How to Make a Web Page
If you need a .COM web address, you can get one quick and easy at...
| <~ BACK | TOP | INTRO |