|
-
Sep 16th, 2008, 09:19 AM
#1
Thread Starter
Hyperactive Member
[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
-
Sep 16th, 2008, 01:30 PM
#2
Fanatic Member
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.
-
Sep 17th, 2008, 02:55 AM
#3
Thread Starter
Hyperactive Member
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.
-
Sep 17th, 2008, 05:09 AM
#4
Fanatic Member
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.
-
Sep 17th, 2008, 01:05 PM
#5
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.
-
Sep 18th, 2008, 02:20 AM
#6
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|