CSS CSS @media queries for responsive websites. The correct way to write CSS @media queries to apply styles for all supported layout dimensions and minimize the chance of flash of unstyled content is to use decimal values up to, but not including the min-width of the next breakpoint.