I have created a unique jQuery plugin that involves utilizing two nested <DIV> elements.
The outer div is set with a fixed width and overflow: scroll, while the inner div (which is wider) houses the content for scrolling purposes.
Everything is functioning correctly, but I am having trouble using JavaScript (with jQuery) to ensure that the height of the inner div matches exactly with the height of the outer div, minus the height of the horizontal scroll bar.
Currently, I am setting the height to be the same as the outer div, minus approximately 20 pixels. This solution is somewhat effective, but it may not be consistent across different browsers and feels like a bit of a hack!
If anyone has any suggestions or guidance on how to achieve this more effectively, I would greatly appreciate it!