Computer Science Canada HELP : VERY SIMPLE QUESTION BUT NOT GETTING IT!: |
| Author: | hamza_saeed007 [ Wed Jan 05, 2005 5:12 pm ] |
| Post subject: | HELP : VERY SIMPLE QUESTION BUT NOT GETTING IT!: |
hi , i just wanted to ask how can we create the shaded hover or mouseover effect . i.e. go to " http://music.msn.com/artist/default.aspx?artist=16074062&app=2 " rollooer or mouseover the name of the songs and then see a grey shade that appears on the name of the song. PLZ HELP. THANKS |
|
| Author: | wtd [ Wed Jan 05, 2005 5:20 pm ] | ||||||||||||
| Post subject: | Re: HELP : VERY SIMPLE QUESTION BUT NOT GETTING IT!: | ||||||||||||
You start with a bit of text in your HTML:
Now, you make it a link:
Then you give the link an id:
Then you add a stylesheet:
Now, we offer a definition of the "my-link" id in the stylesheet:
Now, we define properties for the hover version of the link:
Done. Read up on Cascadiang Style Sheets. |
|||||||||||||