<style>
.class1 {
width: 50%;
}
.class2 {
width: 100%;
} @media all and (min-width: 470px) {
.class2 {
//ignore this class now so it only reads class 1
}
}
It’s for devices which don’t support media queries (which is why I can’t do the obvious other way).
Not quite sure what’s happening here, but you can set a width there to override the one above. The default div width is 100% anyway, so if you want something different, just set it inside the media query.