작성자 : 김동일
작성일 : 2015-10-30
css 레퍼런스 설명:
-
overflow-x : div 영역이 overflow가 될 시 가로축에 대한 처리를 정의한다.
-
syntax :
overflow-x: visible|hidden|scroll|auto|initial|inherit;visible : div 영역에 따라 overflow 발생 시 div 영역 외부에 scroll이 활성화된다.
hidden : 스크롤 여부에 상관 없이 가로축 scroll이 비활성화 된다.
scroll : 스크롤 여부에 상관 없이 가로축 scroll이 활성화 된다.
auto : div 영역에 따라 overflow 발생 시 scoll이 활성화 된다.
initial:기본 값으로 set되어 있는 값을 불러온다.(normal)
inherit:부모 element에 설정되어 있는 값을 상속 받는다.
sample code :
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 110px;
height: 110px;
border: thin solid black;
overflow-x: auto;
overflow-y: hidden;
}
</style>
</head>
<body>
<div><p style="width:140px">
In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'
</p></div>
<p>Overflow-x specifies whether or not to clip the left/right edges of the content.</p>
<p>Overflow-y specifies whether or not to clip the top/bottom edges of the content.</p>
</body>
</html>결과
- align-content
- align-items
- align-self
- @keyframes
- animation
- backface-visibility
- background-clip
- background-origin
- background-size
- border-bottom-left-radius
- border-bottom-right-radius
- border-image
- border-image-outset
- border-image-repeat
- border-image-slice
- border-image-source
- border-image-width
- border-radius
- border-top-left-radius
- border-top-right-radius
- box-shadow
- box-sizing
- column-count
- column-gap
- column-rule
- column-rule-color
- column-rule-style
- column-rule-width
- column-span
- column-width
- columns
- flex
- flex-basis
- flex-direction
- flex-flow
- flex-grow
- flex-shrink
- flex-wrap
- @font-face
- font-feature-settings
- hyphens
- justify-content
- opacity
- order
- outline-offset
- overflow-wrap
- overflow-x
- overflow-y
- perspective
- perspective-origin
- resize
- tab-size
- text-align-last
- text-overflow
- text-shadow
- transform
- transform-origin
- transform-style
- transition
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- word-break
- word-wrap
