Jump to content

CSS Help


Guest GSM2407

Recommended Posts

Guest GSM2407

I have started a website and want to know how to do one thing:-I want to create a link in which the background colour changes to blue on mouse over.Please help :)

Link to comment
Share on other sites

<html><head><style type="text/css"><!--a:hover {background-color: blue;}--></style></head><body><a href="http://www.w3schools.com">W3Schools</a></body></html>

That will make your link blue on mouseover/hover.

Edited by Jonas
Link to comment
Share on other sites

<html><head><title> my webpage</title><style>a{color:blue;}a:hover{background-color:blue;color:white}</style></head><body><a href="somepage.html">Some label</a></body></html>

the :hover is the 'mouseover' for CSS

Link to comment
Share on other sites

I'm constantly one step ahead of you though... :)Whoops, I missed that "background" part... :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...