I've been attempting to adjust the category images based on screen size, but it seems that only the first specified width is being applied. It appears that subsequent rows of code are being overridden by the initial max-width setting (769px) on this website:
How can I ensure that the category image changes 3 times as intended?
.category-list-item {
float: left;
padding: 1em;
}
@media screen and (max-width: 769px) {
.category-list-item { width: 20%; }
};
@media screen and (min-width: 480px) {
.category-list-item { width: 25%; }
};
@media screen and (max-width: 480px) {
.category-list-item { width: 33.33%; }
};
I would greatly appreciate any assistance in resolving this issue! / Martin