문제

Both horizontally and vertically?

I am using jquery ui's draggable feature constrained within a div, and I need a large internal area to work with.

도움이 되었습니까?

해결책

Use padding on the scrollable element and then use margin's on the children.

다른 팁

Padding is what you are looking for. Here's a little guide to using it. http://www.w3schools.com/css/css_padding.asp

There is also a guide to the "box model" which will come in handy learning how margins, borders, padding etc. effect a element. It's on the left navigation panel of the link above (I can't post 2 links)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top