media only screen and (maxwidth: 479px) not working for mobile. Ask Question Asked 8 years, 4 months ago. Active 6 months ago. Viewed 34k times 14 5. My mobile version (maxwidth : 479px) does not show #111 for the background color. Instead, #000 appears as the background color. Please help me. media only screen and (maxwidth: 1024px) { body{ backgroundcolor:#ff0000; } } media .