www.webdeveloper.com
Results 1 to 2 of 2

Thread: Can you do a: pseudo classed in one declaration?

  1. #1
    Join Date
    Nov 2005
    Location
    PRoM
    Posts
    376

    Can you do a: pseudo classed in one declaration?

    a:link {color: white} /* unvisited link */
    a:visited {color: white} /* visited link */
    a:hover {color: white} /* mouse over link */
    a:active {color: white} /* selected link */

    Isn't there a way to do all of this in one shot?

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    Code:
    a:link, a:visited, a:hover, a:active {color:#fff}
    is about the best you're going to get.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles