Hello,
I'm having a hard time targeting a custom class. I set a class for "two-thirds-width" for a paragraph text field.
The html output is:
Can someone help me out with the css selector I need?
Thank you
Hello,
I'm having a hard time targeting a custom class. I set a class for "two-thirds-width" for a paragraph text field.
The html output is:
Can someone help me out with the css selector I need?
Thank you
I've tried variations of "li#field_1_25 .gfield.two-thirds-width" with no luck. I'm trying to define the width of the whole element.
Any help is appreciated, thanks -
Please share a link to the page on your site where we can see your form.
*removed*
Thanks Chris
Try adding this CSS to your theme's stylesheet:
I used 64% since it lined up better with the three-across fields on the first line of the form. Adjust as you see fit.
No luck. I tried variations, and adding a background and border to see if it was just the width that wasn't taking, but nothing.
Edit - It works when I insert in the gravityforms css file, but not mine. I'm curious why this happens even with the custom class and !important. I've also been modifying other form css in my css file, odd.
Thanks Chris
You should not modify the Gravity Forms forms.css file. If it works when you add it there, but not when you add it to one of your theme stylesheets, you are adding it incorrectly, or it's not a specific enough rule to override the others. If you add that back to your theme's stylesheet and post a link here, we will take a look and tell you why it's not working. We can't support modifications to the included Gravity Forms forms.css file, so you'll need to remove those to show us what is going on.