otuatail Posted October 28, 2009 Share Posted October 28, 2009 I have just seen a football website where you can enter your name and make a comment on the football match. When you move your mouse over the NAME textbox, the border goes to a thick border and the background changes to yellow. The same happens for the comment which is a textarea. This is a mouse over event but how do I do this in CSS. I use a separate CSS file instead of inline. Any help TIA Desmond. Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 28, 2009 Share Posted October 28, 2009 http://www.w3schools.com/CSS/css_pseudo_classes.asp Quote Link to comment Share on other sites More sharing options...
otuatail Posted October 28, 2009 Author Share Posted October 28, 2009 Yes thats ok for hyperlinks A:visited but how does this work for type="text". I can handle anchors. Desmond. Quote Link to comment Share on other sites More sharing options...
merylvingien Posted October 28, 2009 Share Posted October 28, 2009 Can you pop a link to the site so i can see whats happening? Quote Link to comment Share on other sites More sharing options...
haku Posted October 28, 2009 Share Posted October 28, 2009 Use the :hover pseudo class on inputs and textareas. 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.