Direct link to the article CSS Basics: Styling Links Like a Boss

CSS Basics: Styling Links Like a Boss

You are probably well acquainted with how links looks without any styling at all. That blue. That underline. That's a link in it's purest form. But what if we want to change things up a bit? Perhaps blue doesn't work with your website's design. Maybe you have an aversion to underlines. Whatever the reason, CSS lets us style links just like any other element.

Avatar of Geoff Graham
Geoff Graham on (Updated on )
Direct link to the article :link

:link

The :link selector is a pseudo-class that targets all anchor (<a) elements on a page that have an href attribute:

a:link {
  color: aquamarine;
}

The example above will change the color of all links to aquamarine.

When …

Avatar of Sara Cope
Sara Cope on (Updated on )