My current setup involves using JQuery 1.12 paired with JQuery UI (1.12). I am looking to customize the padding within specific tabs, but only on particular small mobile browsers. To achieve this, I have defined the following CSS:
@media only screen and (max-width: 400px) {
.ui-tabs .ui-tabs-nav {
margin: 0px;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
padding: .5em .5em;
}
}
Despite setting these styles in my code, when previewing my page on Mac Chrome's mobile browser emulator (essentially Mac Chrome), the default classes appear to be overriding my customized classes...
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
float: left;
padding: .5em 1em;
text-decoration: none;
}
@media only screen and (max-width: 400px) {
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
padding: .5em .5em;
}
}
While attempting to integrate this into SO, I encountered challenges with copying the content accurately. There is a strikethrough line applied to "padding: .5em .5em;" within the media section, indicating an override has occurred. How can I ensure that my UI tab CSS definition takes precedence?