minmax()
minmax()
`minmax()`는 행이나 열에 최소 크기와 최대 크기를 모두 지정할 수 있는 CSS Grid 함수입니다.
다른 예시
케이스 그리드는 `repeat(auto-fit,minmax(min(18rem,100%),1fr))`를 사용합니다. 데스크탑에서는 네 장의 카드가 한 줄을 공유하고, 320px에서는 한 장의 카드가 페이지를 넘치지 않고 들어갑니다. 매우 긴 클라이언트 이름은 트랙을 넓히지 않고 카드를 내부에서 줄 바꿈합니다.
주요 부분
- 01최소 트랙 크기
- 02최대 트랙 크기
- 03사용 가능한 공간 배포
사용할 때
각 브레이크포인트마다 다른 열 너비를 작성하는 대신, 그리드 트랙에 유연한 제한을 제공할 때 사용하세요.
다음 경우에는 사용하지 마세요
최소 슬롯에 `1fr`과 같은 유연한 값을 넣지 마십시오. 또한 콘텐츠의 자동 최소 크기를 확인하십시오.
코드에서 사용된 이름
grid-template-columns: repeat(auto-fit, minmax(minimum, maximum)) 출시하기 전에
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome:Complete the task with minmax() (minmax())。 User context:케이스 그리드는 `repeat(auto-fit,minmax(min(18rem,100%),1fr))`를 사용합니다. 데스크탑에서는 네 장의 카드가 한 줄을 공유하고, 320px에서는 한 장의 카드가 페이지를 넘치지 않고 들어갑니다. 매우 긴 클라이언트 이름은 트랙을 넓히지 않고 카드를 내부에서 줄 바꿈합니다. Design concept to apply:minmax() (minmax())。 Why it fits:각 브레이크포인트마다 다른 열 너비를 작성하는 대신, 그리드 트랙에 유연한 제한을 제공할 때 사용하세요. Do not use it when:최소 슬롯에 `1fr`과 같은 유연한 값을 넣지 마십시오. 또한 콘텐츠의 자동 최소 크기를 확인하십시오. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):공식 문서라고 해도 초안, 출시 후보, 최종 버전일 수 있어요. 상태와 브라우저나 플랫폼 지원 여부를 꼭 확인하세요. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
이 요청을 확인하세요
Review how minmax() (minmax()) is used now. Definition: `minmax()`는 행이나 열에 최소 크기와 최대 크기를 모두 지정할 수 있는 CSS Grid 함수입니다. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.