|
|
|
|
|
by trescenzi
674 days ago
|
|
I was surprised to not see the author call out how amazing template areas are for responsiveness. Using media queries lets you define different grid areas for different screens and then your elements can be moved to whatever layout you'd like for that screen size. If you need to hide an element at a certain size just give it display: none at that size. Here's a very simple example: https://codepen.io/trescenzi/pen/vYqpjvL. |
|
But I thought that using screen size media queries is an anti-pattern, and that we should be aiming for fluid design without arbitrary breakpoints.