1/* To solve overflow issue in IE,
2always use properties separately,
3do not use short hand */
4
5div {
6 overflow-x: hidden;
7 overflow-y: auto;
8}
1.my-div{
2 overflow: hidden;
3}
4.my-div-1{
5 overflow-x: hidden;/* Overflow from the div horizanlty will be hidden*/
6 overflow-y: hidden;/* Overflow from the div vertically will be hidden*/
7}
8.scroll-div{
9 height: 150px
10 overflow: scroll;
11 /* Add scrollbar to the div when its height exceded 150px*/
12 /* Can be used horizanlty or vertically according to your layout*/
13}
1/*
2Overflow Property in CSS Controls the overflow of one element over another
3*/
4
5// If we didn't want it to overflow we can just do this
6
7selector {
8 overflow: hidden;
9}