I am attempting to create the following CSS code:
.myClass
{
@media all (max-width: 1024px) {
left: 33%;
}
@media all (min-width:1025px) {
left: 25%;
}
}
Unfortunately, it doesn't seem to be working as expected. Is there a different approach I could take?
EDIT: I am aware that placing the media queries outside of the class is a solution, but I would like to avoid doing that =(