Jump to content

Text decoration


Russia

Recommended Posts

I currently have this:

 

<input style="color: rgb(204, 204, 204); margin:0; padding:0; border:0; cursor:pointer; background-color:transparent; text-decoration: underline;" name="Submit" type="submit" value="Submit">

 

What I would like it to do, is when you hover over it makes an underline on it when the mouse hovers over. It is currently making underline even when not hovered over.

 

How do I do that?

Link to comment
https://forums.phpfreaks.com/topic/175650-text-decoration/
Share on other sites

<input style="color: rgb(204, 204, 204); margin:0; padding:0; border:0; cursor:pointer; background-color:transparent; " name="Submit" type="submit" value="Submit">

 

a:hover {text-decoration: underline;}

 

remove the text decoration from the html, add a:hover as my example to a css sheet...

Link to comment
https://forums.phpfreaks.com/topic/175650-text-decoration/#findComment-925578
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.