Russia Posted September 26, 2009 Share Posted September 26, 2009 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 More sharing options...
saltedm8 Posted September 26, 2009 Share Posted September 26, 2009 <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 More sharing options...
CarbonCopy Posted September 27, 2009 Share Posted September 27, 2009 and to save you some trouble, there is no way of doing that inline Link to comment https://forums.phpfreaks.com/topic/175650-text-decoration/#findComment-926120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.