Frontend
CSS Grid
Build responsive two-dimensional layouts with tracks and gaps.
Define tracks
display: grid;Create a grid formatting contextgrid-template-columns: repeat(3, minmax(0, 1fr));Build three equal shrinkable columnsgrid-template-columns: 15rem minmax(0, 1fr);Give a sidebar fixed width and content the restgap: 1rem;Set row and column gapsPlace items
grid-column: 1 / -1;Span all explicit columnsgrid-column: span 2;Span two column tracksgrid-row: 2 / 4;Occupy rows between grid lines 2 and 4align-items: start;Align content to the start of each grid areaResponsive layout
grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));Fit columns without overflowing narrow screensgrid-auto-rows: minmax(6rem, auto);Set the size of implicit row tracksplace-items: center;Center items on both axesmin-width: 0;Permit long content to shrink inside grid items