Gabriel Santos
Gabriel Santos

Reputation: 4974

Put scroll bars inside the element

I have a div which have scroll bars, but, when scroll appears it is outside the element (see image below). I want to put the scroll inside the red area. Is it possible? How?

I have not tried nothing, because I don't know how to start this or can't find a similar issue.

enter image description here

Upvotes: 0

Views: 92

Answers (1)

sbjluke
sbjluke

Reputation: 309

I don't think there is any html or CSS way to go about moving the scroll bars to appear inside the div because scrollbars are created by the browser rather than the code itself. The best bet might be using some javascript to make your own scrollable area and then positioning it how you like. Look up how to create scrollbars and scrollable divs with jQuery. Good Luck!

Upvotes: 1

Related Questions