I tried this topic in August but never got to the bottom of it.
I have css targeting desktop which works well, but nothing I do successfully targets the submit button on tablet or mobile (including removing the media query altogether). I hope someone can please assist. I am using !important for tablet/mobile which also does nothing.
You don’t need to add a media query for desktop when your mobile css is the same. Your css will automatically apply to all breakpoints. You only need the mobile media query.
You might want to try border-style:none !important.
Other than that your css for desktop and mobile are identical.
You may also try changing the mobile media query to 768px.
Are you saying the CSS you’re adding has no effect at all for desktop and mobile?
The CSS works on desktop, but does not work on tablet or mobile. You’ll notice the submit button is blue on the above URL in desktop view, but when you go to tablet or mobile view, the button turns to pink outline.
I have tried it again with removed media query and unfortunately it has no affect on tablet/mobile. There must be something blocking it. I agree, the media query is irrelevant, I suppose it’s there to try and get the button to change on tablet/mobile if the css without media query works, that’s complete fine, I am trying to get the button to be blue on all devices.
If the CSS I sent you doesn’t work then really the only way to know for sure is to log in and add CSS the old fashion way. On a rare occasion, the CSS applied in the Google dev tools doesn’t work on your actual site.
This is the culprit though, but I would like to add that the CSS below will apply the changes to other buttons outside of Gravity Forms. If you want to try, see below and let me know.
[type=button], [type=submit], button {
background-color: transparent !important;
color: blue !important;
border: 1px solid blue !important;
}
Can you add the media query to the top of that snippet and try again? I pulled the site up on a mobile breakpoint and that’s the css selector which is styling that. It’s possible they’ve added their css inline though. Which could be overriding the css you’re adding.
Does your theme have a css editor where you can add css to as opposed to your customizer?