i have a problem, i’m working on a gallery php script and need help, i have a picture, it has a lightgray border around, and if theres a mouseover event, i want the border to turn gray. how can i do that?
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the :hover pseudo class. For example:
The above code works well on all sane browsers I have access to. If you need IE 6 support, take a deep breath and check this out (thanks to @Brian Kim for reminding me about IE6):
There are several variants on this approach–I suggest you click through to that site for other options that might be more suitable to your situation.