Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Refreshing a DIV to remove the horizontal scrolling

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Refreshing a DIV to remove the horizontal scrolling

Hello Andy,

You can decrease its size with CSS.

Return to “Issues”