Day #4 of learning in public
Pratik Kumar Jaiswal
319k+ Impression FREELANCE WEB DEVELOPER | REACT js | Firebase | MySQL | Node js | Shopify | WordPress | Webflow
Today I learned about grids in #css. I made my own custom grid on my project.
What is grid?
CSS Grid Layout, a powerful and flexible layout system that allows you to create two-dimensional grid structures for arranging and positioning elements in a web page. CSS Grid is designed to simplify complex layout tasks and provides fine-grained control over the placement of content within a grid.
Here's a brief summary of the grid property in CSS:
.grid-container {
display: grid;
grid-template-rows: 1fr 2fr;Two rows with relative sizes
grid-template-columns: 1fr 2fr 1fr; Three columns with relative sizes
}
.grid-container {
grid-row-gap: 10px;
grid-column-gap: 20px;
/* OR shorthand */
grid-gap: 10px 20px;
}
Nice!? You might be interested in joining our platform, TheWide - a brand new social network for coders & developers. Connect, collaborate, exchange ideas, and *share code directly to your feed* ?? Also, it's totally FREE ??, so come check us out at https://thewide.com/ ?