CSS style override doesn't work on mobile browsers
please remove bgcolor="#000000"
from your body
element and everything will work fine.
Override a specific css class only for Safari browser
-webkit-appearance is (luckily or not) also supported by Firefox and Edge as mentioned in the mozilla documentation.
Only thing I can imagine to work is to use JavaScript to target the user agent:
function detectBrowser() {
if (navigator.userAgent.includes("Safari")) {
// your code here
}
}
Why does the iOS Safari user agent stylesheet appear to override my margin style on the body?
This appears to be a bug in Safari on iPad with iOS7. It remains in 7.0.6.
iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue
iphone overriding all of my styles on an input[type=submit]
You might be looking for:
-webkit-appearance: none;
CSS Webkit Appearance Override?
css-infos.net lists the values as:
caps-lock-indicator The indicator that appears in a password field when Caps Lock is active. Available in Safari 4.0 and later. Available in iOS 2.0 and later.
button
button-bevel
caret
checkbox
default-button
listbox
listitem
media-fullscreen-button
media-mute-button
media-play-button
media-seek-back-button
media-seek-forward-button
media-slider
media-sliderthumb
menulist
menulist-button
menulist-text
menulist-textfield
none
push-button
radio
searchfield
searchfield-cancel-button
searchfield-decoration
searchfield-results-button
searchfield-results-decoration
slider-horizontal, slider-vertical
sliderthumb-horizontal
sliderthumb-vertical
square-button
textarea
textfield
scrollbarbutton-down Unsupported in Safari 4.0
scrollbarbutton-left Unsupported in Safari 4.0
scrollbarbutton-right Unsupported in Safari 4.0
scrollbarbutton-up Unsupported in Safari 4.0
scrollbargripper-horizontal Unsupported in Safari 4.0
scrollbargripper-vertical Unsupported in Safari 4.0
scrollbarthumb-horizontal Unsupported in Safari 4.0
scrollbarthumb-vertical Unsupported in Safari 4.0
scrollbartrack-horizontal Unsupported in Safari 4.0
scrollbartrack-vertical Unsupported in Safari 4.0
Related Topics
How to Reasonably Animate Font Awesome Lock Icons
How to Make the Whole Card Component Clickable in Material UI Using React Js
Resize Jqgrid Based on Number of Rows
Make :Focus Change CSS of Another Class
CSS Overflow Hidden Increases Height of Container
Jquery .Css() Function Not Returning Expected Values
How to Set Width of <Div> to Fit Constant Number of Letters in Monospace Font
How to Detect When a CSS File Has Been Fully Loaded
Nav-Collapse Not Working [Twitter Bootstrap]
How to Rotate an Image by a Random Amount Using CSS
Image Crossfade with JavaScript and CSS3 Transitions
Adding Custom CSS and Js to Shopify
Highlight Multiple Items on Hover's Condition
How to Get Cursor to Change Before Mouse Moves When Changing the Cursor Style Dynamically