canadabeeau Posted December 13, 2009 Share Posted December 13, 2009 Hi I want to make my text input boxes work like the first one on this site http://www.webcredible.co.uk/user-friendly-resources/css/css-forms.shtml So when the client clicks in the box it has a different border (or a border at all), how can I do this in CSS? Thanks in advance, any help appreciated Quote Link to comment https://forums.phpfreaks.com/topic/184955-form-input/ Share on other sites More sharing options...
canadabeeau Posted December 13, 2009 Author Share Posted December 13, 2009 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/184955-form-input/#findComment-976512 Share on other sites More sharing options...
haku Posted December 13, 2009 Share Posted December 13, 2009 You can use :focus on the CSS selector, and add different declarations inside. For example: input:focus { border:red; } But, it doesn't work for all browsers. Definitely not IE6, and I'm thinking not IE7 either, though I can't remember off the top of my head. Quote Link to comment https://forums.phpfreaks.com/topic/184955-form-input/#findComment-976545 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.