CSS Grids makes it very easy to make grids. It is much simpler than using bootstrap like columns and is responsive without having to use media queries.
Proposed API
grid = Grid(columns=3, gap="10px")
for i in range(10):
grid << i
All the css properties of the grid can be set using the .css method. This is advanced usage and once we figure out the common patterns, we'll expose them as regular api.
grid = Grid()
for i in range(10):
grid << "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
grid.css("template-template-columns", "repeat(auto-fit, minmax(300px, 1fr))")
CSS Grids makes it very easy to make grids. It is much simpler than using bootstrap like columns and is responsive without having to use media queries.
Proposed API
All the css properties of the grid can be set using the
.css
method. This is advanced usage and once we figure out the common patterns, we'll expose them as regular api.References