P2.6: CSS Grid Layouts
CSS Grid is the most powerful 2-dimensional layout engine in web design, allowing layouts to align across rows and columns simultaneously.
BCA Practical Coding System β’ Er. Manoj Kumar
Windows OS β’ Linux β’ MS Office β’ Networking β’ Git β’ Web Tech
Test your technical fundamentals with our standard 90-minute Computer-Based Assessment. Submitting your test will automatically certify and link your official score to this student profile!
Link your professional profiles for job recruiters and share verified coding milestones on WhatsApp.
CSS Grid is the most powerful 2-dimensional layout engine in web design, allowing layouts to align across rows and columns simultaneously.
Lesson: p2-6-grid
CSS Grid is the most powerful 2-dimensional layout engine in web design, allowing layouts to align across rows and columns simultaneously.
Define grids with columns and rows:
grid-template-columns: Defines vertical tracks (uses fr fractional unit).grid-gap / gap: Defines grid spacing.grid-template-areas: Maps layout templates directly using semantic strings..grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
