Ignore a class?

Is there a way to ignore a class, such as this:

<div class=“class1 class2”>etc.</div>

<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.

To be honest, my problem is better explained in this post: http://www.sitepoint.com/forums/showthread.php?871807-Media-Queries

…but it’s probably too long for anyone to want to read, so I tried to ask a different question which hopefully would help me.

OK, let’s close this and stick with the other thread. I’ll post an answer there.