I have a submit button, which I have styled and looks correct on Safari, Chrome, Firefox and IE, but as soon as I view the site on an iPad this input button has got a slight gradient going through it and has round corners!
I do not know why this is doing this when I reight click it and inspect it and look at some of the default styles (which I am not applying to it I see)
input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
align-items: flex-start;
text-align: center;
cursor: default;
color: buttontext;
padding: 2px 6px 3px;
border: 2px outset buttonface;
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
background-color: buttonface;
box-sizing: border-box;
}
I’m guessing background-color: buttonface; whatever that is is being some how applied to it. How do I stop that? I just want my own solid color.
Any help would be great
To add background color in HTML, use the CSS background-color property. Set it to the color name or code you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a table, heading, div, or span tag.
The background-color CSS property sets the background color of an element.
Details of the CSS Code for Your Submit Buttonbackground – sets up the background color behind the text. color – determines the color of your text. border-style – sets the style of your submits button borders. border-color – sets the color of your submit button borders.
Try to add -webkit-appearance: none;
on your style.
The browsers apply default style in form elements. You can remove it with the code above.
Or try this css on the specific element:
background-color: transparent;
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