Skip to content Skip to sidebar Skip to footer

Jquery Adding/removing Dom Elements: Scrollbar Issue

I wrote a jQuery function that dynamically adds or removes messages boxes from the DOM. Depending on the site's content and the number of message boxes, the browsers scrollbar appe

Solution 1:

You can use overflow-y: scroll which will force a scrollbar to appear (being visible, but disabled, when there is nothing to scroll). See: http://html5boilerplate.com/docs/css/#html- (also for possible pitfalls)


Post a Comment for "Jquery Adding/removing Dom Elements: Scrollbar Issue"