Ntazola
Oct 7, 2026
Post by Ntazola
CSS specificity in one line: inline beats id beats class beats tag, and a rule inside a media query carries no extra weight at all.
That last part catches people constantly. Your phone styles are not losing because of the media query, they are losing because a later rule has the same selector. #css
That last part catches people constantly. Your phone styles are not losing because of the media query, they are losing because a later rule has the same selector. #css
1 reply