출처: http://www.w3schools.com/css/css_dimension.asp


All CSS Dimension Properties

The number in the "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).


PropertyDescriptionValuesCSS
height

Sets the height of an element
(주의: %사용시 containg block에 대한 비율임! 자체 element에 대한 높이의 %가 아님)

auto
length
%
inherit
1
max-heightSets the maximum height of an elementnone
length
%
inherit
2
max-widthSets the maximum width of an elementnone
length
%
inherit
2
min-heightSets the minimum height of an elementlength
%
inherit
2
min-widthSets the minimum width of an elementlength
%
inherit
2
widthSets the width of an elementauto
length
%
inherit
1



CSS Dimension

Set the height of an image using a pixel value
Set the height of an image using percent
Set the width of an element using a pixel value
Set the width of an element using percent
Set the maximum height of an element
Set the maximum width of an element using a pixel value
Set the maximum width of an element using percent
Set the minimum height of an element
Set the minimum width of an element using a pixel value
Set the minimum width of an element using percent


Dimension properties explained



'개발관련 > CSS/CSS3' 카테고리의 다른 글

[CSS]CSS Advanced - CSS Positioning  (0) 2012.10.23
[CSS]CSS Advanced - CSS Display  (0) 2012.10.23
[CSS]CSS Advanced - CSS Grouping and Nesting  (0) 2012.10.23
[CSS]CSS Box Model - CSS Padding  (0) 2012.10.23
[CSS]CSS Box Model - CSS Margin  (0) 2012.10.23
Posted by 파노카페
: