aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/margin-top/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/css/margin-top/index.html')
-rw-r--r--files/ko/web/css/margin-top/index.html100
1 files changed, 100 insertions, 0 deletions
diff --git a/files/ko/web/css/margin-top/index.html b/files/ko/web/css/margin-top/index.html
new file mode 100644
index 0000000000..008ab67ade
--- /dev/null
+++ b/files/ko/web/css/margin-top/index.html
@@ -0,0 +1,100 @@
+---
+title: margin-top
+slug: Web/CSS/margin-top
+tags:
+ - CSS
+ - CSS Property
+ - Reference
+translation_of: Web/CSS/margin-top
+---
+<div>{{CSSRef}}</div>
+
+<p><strong><code>margin-top</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">바깥 여백 영역</a><sup>margin area</sup>을 설정합니다. 양수 값은 인접 요소와 거리를 넓히고, 음수 값은 더 좁힙니다.</p>
+
+<div>{{EmbedInteractiveExample("pages/css/margin-top.html")}}</div>
+
+
+
+<p>{{HTMLElement("span")}}, {{HTMLElement("code")}} 등 <a href="/ko/docs/Web/CSS/Replaced_element">비대체</a><sup>non-replaced</sup> 인라인 요소에는 효과가 없습니다.</p>
+
+<h2 id="Syntax" name="Syntax">구문</h2>
+
+<pre class="brush: css">/* &lt;length&gt; 값 */
+margin-top: 10px; /* 절대 길이 */
+margin-top: 1em; /* 글씨 크기에 상대적 */
+margin-top: 5%; /* 가장 가까운 블록 컨테이너의 너비에 상대적 */
+
+/* 키워드 값 */
+margin-top: auto;
+
+/* 전역 값 */
+margin-top: inherit;
+margin-top: initial;
+margin-top: unset;</pre>
+
+<p><code>margin-top</code> 속성은 키워드 <code>auto</code>, <code>&lt;length&gt;</code>, <code>&lt;percentage&gt;</code>를 사용해 설정할 수 있습니다. 값은 양수, 0, 음수가 가능합니다.</p>
+
+<h3 id="Values" name="Values">값</h3>
+
+<dl>
+ <dt>{{cssxref("&lt;length&gt;")}}</dt>
+ <dd>바깥 여백 크기의 고정 값.</dd>
+ <dt>{{cssxref("&lt;percentage&gt;")}}</dt>
+ <dd>바깥 여백 크기와 블록 컨테이너 너비의 비율.</dd>
+ <dt><code>auto</code></dt>
+ <dd>브라우저가 적절한 값 선택. {{cssxref("margin")}}을 참고하세요.</dd>
+</dl>
+
+<h3 id="형식_구문">형식 구문</h3>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Examples" name="Examples">예제</h2>
+
+<pre class="brush:css;">.content { margin-top: 5%; }
+.sidebox { margin-top: 10px; }
+.logo { margin-top: -5px; }
+#footer { margin-top: 1em; }
+</pre>
+
+<h2 id="Specifications" name="Specifications">명세</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-margin', 'margin-top')}}</td>
+ <td>{{Spec2('CSS3 Box')}}</td>
+ <td>No significant change</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS3 Transitions', '#animatable-css', 'margin-top')}}</td>
+ <td>{{Spec2('CSS3 Transitions')}}</td>
+ <td>Defines <code>margin-top</code> as animatable.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS2.1', 'box.html#margin-properties', 'margin-top')}}</td>
+ <td>{{Spec2('CSS2.1')}}</td>
+ <td>Removes its effect on inline elements.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS1', '#margin-top', 'margin-top')}}</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.margin-top")}}</p>