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? Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.