μ΄λ²ˆμ—λŠ” dimension에 λŒ€ν•΄μ„œ ν¬μŠ€νŒ…μ„ 해보도둝 ν•˜κ² μŠ΅λ‹ˆλ‹€. μ—¬κΈ°μ„œ λ§ν•˜λŠ” λ””λ©˜μ…˜μ΄λž€ 3차원 4차원 이런 것을 λ§ν•˜λŠ” 것이 μ•„λ‹ˆκ³  음...단지 λ„ˆλΉ„μ™€ 높이λ₯Ό λ‹€λ£¨λŠ” 것을 λ§ν•©λ‹ˆλ‹€.  

μ»¨ν…νŠΈκ°€ λ“€μ–΄κ°€λŠ” λ°•μŠ€μ˜ λ””λ©˜μ…˜κ³Ό κ΄€λ ¨λœ μ†μ„±λ“€μ—λŠ” λ‹€μŒκ³Ό 같은 것듀이 μžˆμŠ΅λ‹ˆλ‹€.

  •  height λ°•μŠ€μ˜ 높이λ₯Ό κ²°μ •μ§“λŠ” μ†μ„±μž…λ‹ˆλ‹€.

  •  width λ°•μŠ€μ˜ λ„ˆλΉ„λ₯Ό μ§€μ •ν•˜λŠ” 속성이죠.

  •  line-height κΈ€μž 라인의 높이λ₯Ό μ§€μ •ν•©λ‹ˆλ‹€.

  •  max-height λ°•μŠ€μ˜ μ΅œλŒ€ 높이λ₯Ό μ œν•œν•©λ‹ˆλ‹€.

  •  min-height λ°•μŠ€μ˜ μ΅œμ†Œ 높이λ₯Ό μ œν•œν•©λ‹ˆλ‹€.

  •  max-width λ°•μŠ€μ˜ μ΅œλŒ€ λ„ˆλΉ„λ₯Ό μ œν•œ.

  •  min-width λ°•μŠ€μ˜ μ΅œμ†Œ λ„ˆλΉ„λ₯Ό μ œν•œ.


The height and width Properties:

The height and width properties allow you to set the height and width for boxes. They can take values of a length, a percentage, or the keyword auto.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ . 

<p style="width:400px; height:100px;border:1px solid red;
             padding:5px; margin:10px;">
This paragraph is 400pixels wide and 100 pixels high
</p>

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

This paragraph is 400pixels wide and 100 pixels high

 


The line-height Property:

The line-height property allows you to increase the space between lines of text. The value of the line-height property can be a number, a length, or a percentage.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ .

<p style="width:400px; height:100px;border:1px solid red;
             padding:5px; margin:10px;line-height:30px;">
This paragraph is 400pixels wide and 100 pixels high
and here line height is 30pixels.This paragraph is 400 pixels
wide and 100 pixels high and here line height is 30pixels.
</p>

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

This paragraph is 400pixels wide and 100 pixels high and here line height is 30pixels.This paragraph is 400 pixels wide and 100 pixels high and here line height is 30pixels.

 


The max-height Property:

The max-height property allows you to specify maximum height of a box. The value of the max-height property can be a number, a length, or a percentage.

NOTE: This property does not work in either Netscape 7 or IE 6.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ .

<p style="width:400px; max-height:10px;border:1px solid red;
             padding:5px; margin:10px;">
This paragraph is 400px wide and max height is 10px
This paragraph is 400px wide and max height is 10px
This paragraph is 400px wide and max height is 10px
This paragraph is 400px wide and max height is 10px
</p>
<img alt="logo" src="/images/css.gif" width="95" height="84" />

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px

logo

 


The min-height Property:

The min-height property allows you to specify minimum height of a box. The value of the min-height property can be a number, a length, or a percentage.

NOTE: This property does not work in either Netscape 7 or IE 6.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ .

<p style="width:400px; min-height:200px;border:1px solid red;
             padding:5px; margin:10px;">
This paragraph is 400px wide and min height is 200px
This paragraph is 400px wide and min height is 200px
This paragraph is 400px wide and min height is 200px
This paragraph is 400px wide and min height is 200px
</p>
<img alt="logo" src="/images/css.gif" width="95" height="84" />

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

This paragraph is 400px wide and min height is 200px This paragraph is 400px wide and min height is 200px This paragraph is 400px wide and min height is 200px This paragraph is 400px wide and min height is 200px

logo

 


The max-width Property:

The max-width property allows you to specify maximum width of a box. The value of the max-width property can be a number, a length, or a percentage.

NOTE: This property does not work in either Netscape 7 or IE 6.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ .

<p style="max-width:100px; height:200px;border:1px solid red;
             padding:5px; margin:10px;">
This paragraph is 200px high and max width is 100px
This paragraph is 200px high and max width is 100px
This paragraph is 200px high and max width is 100px
This paragraph is 200px high and max width is 100px
This paragraph is 200px high and max width is 100px
</p>
<img alt="logo" src="/images/css.gif" width="95" height="84" />

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

This paragraph is 200px high and max width is 100px This paragraph is 200px high and max width is 100px This paragraph is 200px high and max width is 100px This paragraph is 200px high and max width is 100px This paragraph is 200px high and max width is 100px

logo

 


The min-width Property:

The min-width property allows you to specify minimum width of a box. The value of the min-width property can be a number, a length, or a percentage.

NOTE: This property does not work in either Netscape 7 or IE 6.

 

λ‹€μŒ 예제λ₯Ό λ³΄μ‹œμ£ .

<p style="min-width:400px; height:100px;border:1px solid red;
             padding:5px; margin:10px;">
This paragraph is 100px high and min width is 400px
This paragraph is 100px high and min width is 400px
This paragraph is 100px high and min width is 400px
This paragraph is 100px high and min width is 400px
This paragraph is 100px high and min width is 400px
</p>
<img alt="logo" src="/images/css.gif" width="95" height="84" />

 

κ²°κ³ΌλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€. 

This paragraph is 100px high and min width is 400px This paragraph is 100px high and min width is 400px This paragraph is 100px high and min width is 400px This paragraph is 100px high and min width is 400px This paragraph is 100px high and min width is 400px

logo

 

 

 

 

κΌ­ 따라해 λ³΄μ‹œλŠ” 것 μžŠμ§€ λ§ˆμ‹œκ³ , 이것저것 μˆ˜μΉ˜λ„ λ°”κΏ”μ„œ ν•΄λ³΄μ„Έμš”. ^-^  

 

 

 

 

 

Reference : http://www.tutorialspoint.com/css/css_dimension.htm