Adding div scroll bars that don't add horizontal scroll bar to page
Posted on 2005-04-10
I have a page where I have essentially two divs (class="frame") that occupy the full width of the page minus 10px padding in the body tag I have their overflow set to auto. Within each of these divs are other divs (class="rowwrap") which have their width set to 100%, so when the content within them causes the outer frame div to add the verticle scroll bar, its added to the width of frame div and causes a horizontal scroll bar to be added to the page and pushes the "total width" of the div so that its verticle scroll bar is at least partially off the page. I can't change the width of rowwrap to auto because they conatain other floated left divs (The whole layout is display of tabular material without the use of tables.), and auto throws the alignment all out of wack
Is there a way to have those vertical scroll bars added inside of their divs, essentially shrinking the inner divs from 100% to something less?