I'm not quite sure how to style the field boxes on click? I can style them as is, but I want to control the style when the user clicks on the field box. How can I do this?
Thomas
I'm not quite sure how to style the field boxes on click? I can style them as is, but I want to control the style when the user clicks on the field box. How can I do this?
Thomas
you're probably looking for something like this... using the ":focus" pseudo-selector
input[type=email]:focus, input[type=text]:focus, input[type=url]:focus, input[type=phone]:focus, textarea:focus, select:focus {border:1px solid #f00}
Just what I was looking for! Thanks :)
hi,
we got the same problem but not sure where this pseudo-selector to be placed. Please tell me.i am totally new to GF.i have made a widget for GF and what the same functionality as on click to disappear the text.
Thanks
You would just append this to the end of your theme's style.css file (or whatever the default stylesheet name is)
Thanks for your reply..
But i want to disappear the default text from the input control when i focus that input control.Please guide me.
Thanks
Sorry, you'll need to do that with jQuery.
http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/