...

View Full Version : CSS on Hyperlinks



him
07-14-2005, 08:40 PM
Hi,

I have seen people able to use CSS on hyperlinks to create an effect like when the mouse is hover the link, the text would slightly go down but when you let go it would pop back up again. Does anyone know how to do it? And is there any tutorial site on JS and CSS?

Thanks,
him

mark87
07-14-2005, 09:05 PM
I haven't tried it but I see no reason why this wouldn't work in most cases...

a:link { margin-top: 0px }
a:hover { margin-top: 10px }

If that doesn't bring the desired effect, try it with padding.

a:link { padding-top: 0px }
a:hover { padding-top: 10px }



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum