user1741020
user1741020

Reputation: 41

jScrollPane setting a padding-bottom value

For layout purposes I need to place 15px space between the bottom of the scrolled contents and the bottom of the container: div class="scroll-pane".

Styling the container .scroll-pane { padding-bottom:15px; } has no influence on the output. Going into the code of plugin jScrollPane(), it is set: elem.css({'padding':0}); so the padding-value is reset.

Is there any way to set a paddingBottom value for the scrolling container?

Upvotes: 4

Views: 1271

Answers (2)

A. D'Alfonso
A. D'Alfonso

Reputation: 789

A css rule should work too!

.scroll-pane {
  padding-bottom:15px!important;
}

Upvotes: 1

Kevin Cittadini
Kevin Cittadini

Reputation: 1469

In jQuery

$('.scroll-pane').parent().css('padding-bottom', '15px');

Should do the trick

Upvotes: 0

Related Questions