My current design presents a challenge on larger screens (1400px+) where there is a wide content area with three side columns. As the screen size decreases, the number of aside columns reduces and the main content shrinks accordingly. This situation requires me to use media queries to adjust styling as the layout shifts.
The problem arises when the browser resolution drops below 960px, causing all containers to occupy a single line width, making the main container appear larger again. I want to maintain consistent rules for resolutions 1400px+ which look much better. Additionally, I need to revert back to the one-line layout below 768px.
I've attempted to segregate styles using
@media only screen and (min-width: 960px) and (max-width: 1400px)
, but now I wish to include these same styles for resolutions below 768px without duplicating my code. Is it possible to achieve this seamlessly?