SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member coo_t2's Avatar
    Join Date
    Feb 2003
    Location
    Dog Street
    Posts
    1,819
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    pseudo class syntax ok?

    Hey all. I use a pseudo class in one of my style sheets:

    a:hover.subProdNav ..
    I've also seen people do it like:
    a.subProdNav:hover

    The first example passes the w3c's css validator. So are they both right?

    tia,
    --ed

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think a.subProdNav:hover is what I'd do, but I don't think there's any law against the former. If you really want to wrap your head around CSS links, you might want to check out http://dbaron.org/css/1999/09/links ;-)

    ~~Ian

  3. #3
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ian Glass
    a.subProdNav:hover
    does it for me...
    never had any trouble that way
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


Bookmarks

Posting Permissions

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