overflow code example
Example 1: div scrollable content
div{
overflow : scroll;
}
Example 2: css no overflow
div.ex1 {
overflow: scroll;
}
div.ex2 {
overflow: hidden;
}
div.ex3 {
overflow: auto;
}
div.ex4 {
overflow: visible;
}
Example 3: overflow hidden
overflow: hidden;
Example 4: overflow css
div {
overflow-x: hidden;
overflow-y: auto;
}
Example 5: overflow-x hidden meaning in css
The overflow-x property specifies whether to clip the content,
add a scroll bar, or display overflow content of a block-level element,
when it overflows at the left and right edges.