Floated Elements: Different Max-Widths on Different Screens
-
The main functionality of my site (https://kawaiiface.net) is stringent upon floats and max-widths working well. My sidebar slots are
float: left
; andfloat: right
; , and my content buttons arefloat: center
;. Everything positions itself in relation to one another responsively on desktop screen sizes — but on mobile, the sidebars appear above the content.In anticipation of the algo update, I’ve gone ahead and added responsive containers to everything: my sidebars run a
max-width: 160px;
withwidth: 100%;
to 1. keep them in the spot they should be and 2. allow them to be responsive on smaller screens. This has caused an issue, though — where the max-width allows my containers to fit well and provide a proper UE on desktop, they prevent the slots from expanding enough to fill the whole screen on mobile!How can I remove my max-width parameter when my left-floated element is in its own block (aka above everything else on smaller screens)? Here is an image to help.
Thanks so much!!
- The topic ‘Floated Elements: Different Max-Widths on Different Screens’ is closed to new replies.