• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 18. Creating a Site Header > Styling the <a> Element

Styling the <a> Element

To avoid targeting all links on the page, a specific selector should be used. Here, you will use ul#topnav li a:link, ul#topnav li a:visited, ul#topnav li a:hover, and ul#topnav li a:active.

The link and visited pseudo-classes can be set with text-decoration: none (which will turn off link underlines) and color: #FFF as shown in Listing 18.9.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint