Is it possible to use CSS to set the width of the file upload field? I've set a CSS class for it in Gravity Forms, but it appears that GF automatically hard codes size=20 for this input type.
Is it possible to use CSS to set the width of the file upload field? I've set a CSS class for it in Gravity Forms, but it appears that GF automatically hard codes size=20 for this input type.
Not really. The input type "file" is difficult at best to apply any styles to and styling is not supported in all of the browsers for that control. That's a browser limitation due to how the control works and not something that Gravity Forms limits or can control.
Thank you. Hadn't worked with this input type before. Run into something new every day.
And it's really a mess when you start comparing different browsers. Some have the button on the left, some the button on the right, some show an empty text box where the path to the file will appear, some show nothing.
Yep. It's frustrating that you're limited to the browser defaults on these types of fields. Select (drop-down) fields have a lot of styling limitations as well. Apparently the browser has to render these type of fields differently than standard inputs so the styling has to be locked down a bit.