*NEVER* edit the plugin files or form.css file because those changes will be overwritten when you install an update to Gravity Forms.
Anytime you want to override Gravity Forms styles and customize a form via CSS you can do so by adding CSS to your themes stylesheet that targets the Gravity Forms CSS classes and ids.
Another good option is to copy the entire contents of the forms.css file and paste it into your themes stylesheet. Then go to the Settings page of Gravity Forms and turn off CSS output. This will then use the styles from your theme stylesheet only and you can then customize the Gravity Forms styles all you want.
You should be able to make adjustments to the gfield_label class using either of the above methods. You just need to make sure you understand what classes and CSS is being called and pay attention to CSS inheritance because something else may be setting the width outside of gfield_label and because of inheritance it is then inheriting that width.
You can find out CSS guide here:
http://www.gravityhelp.com/documentation/visual-css-guide/
Posted 14 years ago on Wednesday July 28, 2010 |
Permalink