Page 1 of 1

Refreshing a DIV to remove the horizontal scrolling

Posted: Tue Jan 05, 2016 11:54 am
by Andy Parker

Hi,

I have a DIV on the screen that has a wide grid of images.

This div is allowed to scroll horizontally to display all 10 images.

If there is no image, I hide the grid element but the DIV still scrolls as if there were 10 images.

Is there a way to refresh the DIV so that it sees it's contents are now smaller in width so does not allow so much (or even any) horizontal scroll?


Refreshing a DIV to remove the horizontal scrolling

Posted: Tue Jan 05, 2016 12:01 pm
by Serhii Kulibaba

Hello Andy,

You can decrease its size with CSS.