Responsive grid views adapt card counts per row based on available width.
Common pattern
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.75rem; }
Important interview questions and answers
- Q: auto-fit vs auto-fill quick difference?
A: auto-fit can collapse empty tracks; auto-fill retains track placeholders. - Q: Why minmax in responsive grids?
A: Prevents tracks from shrinking below usable widths. - Q: Typical dashboard bug?
A: Cards becoming too narrow due to aggressive fixed column counts.
Tip: Design mobile-first: base rules, then min-width media queries.