Skip to content

Commit f6413c9

Browse files
authored
Change 250px to min(250px, 100%)
For some reason "edit and fork" didn't save my inital edit which did this on my fork, thanks github.
1 parent debf15d commit f6413c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/css/layouts/grid-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: layout,grid
99
```css
1010
.grid-container {
1111
display: grid
12-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
12+
grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
1313
/* Explanation:
1414
- `auto-fit`: Automatically fits as many columns as possible within the container.
1515
- `minmax(250px, 1fr)`: Defines a minimum column size of 250px and a maximum size of 1fr (fraction of available space).

0 commit comments

Comments
 (0)