Div Scrollable Treści
div{
overflow : scroll;
}
dr3am_warri0r
div{
overflow : scroll;
}
/* To solve overflow issue in IE,
always use properties separately,
do not use short hand */
div {
overflow-x: hidden;
overflow-y: auto;
}
#wrapper {
width: 500px;
border: 1px solid black;
overflow: hidden; /* add this to contain floated children */
}
#first {
width: 300px;
float:left; /* add this */
border: 1px solid red;
}
#second {
border: 1px solid green;
float: left; /* add this */
}
CSS allows us to control the vertical or horizontal scrollbar with two properties.
overflow-x /*controls the horizontal scrollbar*/
overflow-y /*controls the vertical scrollbar*/
overflow-x /*and overflow-y have the same values as the overflow property*/
auto
scroll
visible
hidden
div {
width: 200px;
height: 65px;
background-color: coral;
overflow: visible;
}
/*
Overflow Property in CSS Controls the overflow of one element over another
*/
// If we didn't want it to overflow we can just do this
selector {
overflow: hidden;
}