elibraryportal Logo

CSS Link

Links can be styled in different ways by use of CSS.

Text Link Text Link Link Button Link Button

Link Style

Links styled can be use with any CSS property (e.g. color, font-family, background, etc.).

Example:-

Test it Now

There are four links states that is:

  1. a:link :- This is normal & unvisited link.
  2. a:visited:- visited a link by the user .
  3. a:hover :- Mouses over on link
  4. a:active :- Click moment.

Example:-

Test it Now

Text Decoration

text-decoration property is used to remove underlines from links:

Example:-

Test it Now

Background Color

background-color property is used to background color for links:

Example:-

Test it Now

Link Buttons

CSS properties to display links as boxes/buttons:

Example:-

Test it Now
Next TopicCSS List