dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Use same CSS for buttons, but with slight difference with each..

  1. #1
    Join Date
    Jun 2008
    Posts
    207

    Use same CSS for buttons, but with slight difference with each..

    Hi, Is it possible to have two id's for the same tag.

    Basically i have a set of buttons that are using a global CSS, but i also want each to have it's own independant a:hover style. Is this possible?

    Thanks

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Id must be unique, use class to apply style to the buttons.

  3. #3
    Join Date
    Jun 2008
    Posts
    207
    I have given each <a> a class, but it is still not working.

    Is there any reason why this would be invalid:

    #eventsDropDown li a.category1:hover
    {
    background-image:url(../personal_development_over.jpg);
    }

  4. #4
    Join Date
    Sep 2008
    Posts
    408
    would have to see the HTML as well.

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