Jump to content

scrollable Div's and with problems.


ChrisDarl

Recommended Posts

Right guys... I have a DIV that is scrollable once the content is too big for the container. So, the scrollbars dont show unless there is too much content.

However the problem is with the width styles i believe. When the vertical scrollbar is shown the horizontal one appears because the width is set to 100% and i think its adding the horizontal scrollbar because of the vertical scroll bar being there.

Sorry, its quite hard to explain. Hope you understand what i mean, if not, ask away and ill answer/show demo.

So, im thinking a need some JS / CSS Expression to do.. if vertical scrollbars = visible then width = 100% - vertical scrollbar width. Any ideas at all?

Many thanks in advance. chris

PS. Iam only getting this problem in IE 7/6 not FireFox.
Link to comment
https://forums.phpfreaks.com/topic/3400-scrollable-divs-and-with-problems/
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.