Here I have a submit button:
<input type="submit" value="submit" />
And I want to add some additional styles to make it a flat look:
input { border: 0; background: none; -webkit-appearance: none; }
This is how it looks afterwards:
However, if you look carefully, there is still some border on the top of the submit button...... Is there some way to remove the sunken or raised surface and make it a plain flat look?
you can style the Button as you wish. In the same way as in the previous answers, you can pimp your button selecting it using the input[type="submit"].
You will need to set border, box-shadow and background to 0/none to remove any greyish appearance as seen on button. Then to remove the rounded corners set border-radius to 0px. Show activity on this post.
The simplest way to do this is by using the WordPress CSS Editor. To open this, go to Appearance » Customize and select Additional CSS. Once you've opened the Additional CSS section, you can paste in your new CSS, click the Save & Publish button, and you're all set!
You will need to set border, box-shadow and background to 0/none to remove any greyish appearance as seen on button. Then to remove the rounded corners set border-radius to 0px.
Rules are :
input[type="submit"] /* Or better yet try giving an ID or class if possible*/ { border: 0; background: none; box-shadow: none; border-radius: 0px; }
outline: none;
would be my first guess.
And also you would probably want to remove the :focus
state and :hover
state as so
input[type="submit"]:focus { background:none; outline: none; border:none; } input[type="submit"]:hover { background: none; border: none; outline: none; box-shadow: none; }
this makes it so when it is pressed, it won't have an emphasized outline.
if it doesn't work try removing other styles such as box-shadow:none;
, border-radius:none;
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With