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 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? 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. Link to comment https://forums.phpfreaks.com/topic/184955-form-input/#findComment-976545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.