aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/padding-left/index.html
blob: 53548b5f0927daa1de42a4acedbc7d0f6e20325d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
title: padding-left
slug: Web/CSS/padding-left
tags:
  - CSS
  - CSS Padding
  - CSS Property
  - Reference
translation_of: Web/CSS/padding-left
---
<div>{{CSSRef}}</div>

<p><strong><code>padding-left</code></strong> <a href="/ko/docs/Web/CSS">CSS</a> 속성은 요소의 왼쪽에 <a href="/ko/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model#padding-area">안쪽 여백 영역</a>을 설정합니다.</p>

<div>{{EmbedInteractiveExample("pages/css/padding-left.html")}}</div>



<p>요소의 안쪽 여백 영역은 콘텐츠와 테두리 사이의 공간입니다.</p>

<div class="note">
<p><strong>참고:</strong> {{cssxref("padding")}} 속성을 사용하면 하나의 선언으로 네 방향 여백을 모두 설정할 수 있습니다.</p>
</div>

<h2 id="Syntax" name="Syntax">구문</h2>

<pre class="brush:css no-line-numbers">/* &lt;length&gt; 값 */
padding-left: 0.5em;
padding-left: 0;
padding-left: 2cm;

/* &lt;percentage&gt; 값 */
padding-left: 10%;

/* 전역 값 */
padding-left: inherit;
padding-left: initial;
padding-left: unset;
</pre>

<p><code>padding-left</code> 속성의 값은 아래 목록 중 하나로 지정할 수 있습니다. 바깥 여백<sup>margin</sup>과 다르게, 음수 값은 사용할 수 없습니다.</p>

<h3 id="Values" name="Values"></h3>

<dl>
 <dt>{{cssxref("&lt;length&gt;")}}</dt>
 <dd>여백의 크기로 고정값 사용.</dd>
 <dt>{{cssxref("&lt;percentage&gt;")}}</dt>
 <dd>여백의 크기로 <a href="/ko/docs/Web/CSS/All_About_The_Containing_Block">컨테이닝 블록</a> 너비의 백분율 사용.</dd>
</dl>

<h3 id="형식_구문">형식 구문</h3>

{{csssyntax}}

<h2 id="Examples" name="Examples">예제</h2>

<pre class="brush: css">.content { padding-left: 5%; }
.sidebox { padding-left: 10px; }
</pre>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('CSS3 Box', '#the-padding', 'padding-left') }}</td>
   <td>{{ Spec2('CSS3 Box') }}</td>
   <td>No change.</td>
  </tr>
  <tr>
   <td>{{ SpecName('CSS3 Transitions', '#animatable-css', 'padding-left') }}</td>
   <td>{{ Spec2('CSS3 Transitions') }}</td>
   <td>Defines <code>padding-left</code> as animatable.</td>
  </tr>
  <tr>
   <td>{{ SpecName('CSS2.1', 'box.html#padding-properties', 'padding-left') }}</td>
   <td>{{ Spec2('CSS2.1') }}</td>
   <td>No change.</td>
  </tr>
  <tr>
   <td>{{ Specname('CSS1', '#padding-left', 'padding-left') }}</td>
   <td>{{ Spec2('CSS1') }}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<p>{{cssinfo}}</p>

<h2 id="Browser_Compatibility" name="Browser_Compatibility">브라우저 호환성</h2>



<p>{{Compat("css.properties.padding-left")}}</p>

<h2 id="같이_보기">같이 보기</h2>

<ul>
 <li><a class="internal" href="/ko/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model" title="en/CSS/box model">CSS 기본 박스 모델 입문</a></li>
 <li>{{cssxref("padding")}}</li>
</ul>