Show scroll bars in div if the text is long..

Posted by Prabhukiran345 under CSS 3 category on | Points: 40 | Views : 1337
To achieve this scrollbar property we have to set verflow property of css to "visible" or "auto".

overflow: auto; /*for horizontal and vertical scroll bars */
/* or you can set scrolling in x and y direction */
overflow-x: auto; /*for horizontal scroll bar */
overflow-y: auto; /*for vertical scroll bar */

Note: In the place of auto , if we specify none, then it will not show scrollbar on that direction

Comments or Responses

Login to post response