Results 1 to 6 of 6

Thread: [RESOLVED] [2005] :hover pseudo-class help

  1. #1

    Thread Starter
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Resolved [RESOLVED] [2005] :hover pseudo-class help

    Hello,
    I am new and rubbish with anything ASP so bare with me.
    Can you use the ':hover pseudo-class' to change the background colour of an ASP panel when the mouse hovers over it?

    e.g
    Code:
    .panel
    {
    	background-color: Blue;
    } 
    .panel:hover
    {
    	background-color: White;
    }
    I think i have referenced the CSS class in the correct places but the panel stays blue when the mouse hovers over it.

    Thanks,
    Mojo

  2. #2
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Re: [2005] :hover pseudo-class help

    the problem is the compatibility. Actually this will work in all modern browsers except Internet Explorer 5 and 6. Give it a try the same style in FF and it will work. Shame i know.

  3. #3

    Thread Starter
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Re: [2005] :hover pseudo-class help

    Thats pretty rubbsih that it doesn't work in 6 as i need it to. Thanks for your help though. It does work in FF as you suggested.

  4. #4
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Re: [2005] :hover pseudo-class help

    Only god knows why the FF and IE staff still refuse to sync the CSS support and make it easier for the developers. Inded, I cannot understand their stupid war while we are bumping and hitting our heads on the wall.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] :hover pseudo-class help

    You may want to consider a javascript based solution in the interim if this 'hover' functionality is important to you.

  6. #6

    Thread Starter
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Re: [2005] :hover pseudo-class help

    Thanks, i will look into a way of doing this using javascript.

Posting Permissions

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



Click Here to Expand Forum to Full Width