Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6413c9

Browse files
authored
Change250px tomin(250px, 100%)
For some reason "edit and fork" didn't save my inital edit which did this on my fork, thanks github.
1 parentdebf15d commitf6413c9

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)

[8]ページ先頭

©2009-2025 Movatter.jp