DEV Community

Discussion on: Responsive CSS Layouts WITHOUT Media Queries

Collapse
 
fretagi profile image
fretagi

Hi
I wonder if you can help me, I still in the learning phase, I ´ve made a layout using css grid, but its not responsive although I´ve used the :
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
my layout is in:~
codepen.io/fretagi/pen/qBaPExy

Collapse
 
kylefilegriffin profile image
Kyle Griffin

When you use grid-column on a grid containers children, you lose the responsive ability unless you set it again in a media query.
Auto-fit/auto-fill works best with equal size elements. If you're trying to make a traditional website page structure using grid (highly recommended), then look into grid-template-area

Thanks!

Collapse
 
fretagi profile image
fretagi

Thanks a lot, I was under impression that I was doing something wrong

Collapse
 
parthis1833 profile image
Joshi Parthish

change the value of minmax