Junior — Middle
What tool or framework did you use to create the grid when laying out the page?
sobes.tech AI
Answer from AI
To create a grid layout when designing a webpage, developers often use CSS frameworks and tools such as:
- Bootstrap — one of the most popular frameworks with a ready-made 12-column grid.
- CSS Grid Layout — a modern CSS module that allows creating complex grids without third-party libraries.
- Flexbox — a flexible way to arrange elements, often used for creating responsive grids.
Example of a simple grid with CSS Grid:
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.item {
background-color: #ccc;
padding: 20px;
}
<div class="container">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</div>