Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ko): Add Korean translation of fit-content #23514

Merged
merged 8 commits into from
Sep 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions files/ko/web/css/fit-content/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: fit-content
slug: Web/CSS/fit-content
l10n:
sourceCommit: 14515827c44f3cb814261a1c6bd487ae8bfcde1b
---

{{CSSRef}}

**`fit-content`** 키워드는 {{cssxref("fit-content_function", "fit-content(stretch)")}}와 동일합니다. 실제로 이는 박스가 사용 가능한 공간을 사용하되, 절대 {{cssxref("max-content")}}보다 크지는 않음을 의미합니다.

{{cssxref("width")}}, {{cssxref("height")}}, {{cssxref("min-width")}}, {{cssxref("min-height")}}, {{cssxref("max-width")}} 및 {{cssxref("max-height")}}에 대해 박스 크기로 사용될 때, 최대 및 최소 크기는 콘텐츠의 크기를 의미합니다.
C17AN marked this conversation as resolved.
Show resolved Hide resolved

> [!NOTE]
> CSS Sizing 명세는 {{cssxref("fit-content_function", "fit-content()")}} 함수도 정의합니다. 이 페이지에서는 해당 키워드에 대해 설명합니다.

## 구문

```css
width: fit-content;
block-size: fit-content;
```

## 예제

### Using fit-content for box sizing
C17AN marked this conversation as resolved.
Show resolved Hide resolved

#### HTML

```html
<div class="container">
<div class="item">Item</div>
<div class="item">Item with more text in it.</div>
<div class="item">
Item with more text in it, hopefully we have added enough text so the text
will start to wrap.
</div>
</div>
```

#### CSS

```css
.container {
border: 2px solid #ccc;
padding: 10px;
width: 20em;
}

.item {
width: fit-content;
background-color: #8ca0ff;
padding: 5px;
margin-bottom: 1em;
}
```

#### 결과

{{EmbedLiveSample("Using_fit-content_for_box_sizing", "100%", 200)}}

## 명세
hochan222 marked this conversation as resolved.
Show resolved Hide resolved

{{Specifications}}

## 브라우저 호환성

{{Compat}}

## 함께 보기
hochan222 marked this conversation as resolved.
Show resolved Hide resolved

- 연관된 크기 키워드: {{cssxref("min-content")}}, {{cssxref("max-content")}}
- [CSS box sizing](/ko/docs/Web/CSS/CSS_box_sizing) 모듈