Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: not2easy

Message Too Old, No Replies

maintaining div width with 'overflow: auto'

     
6:28 pm on Mar 6, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 10, 2005
posts:387
votes: 0


I have a div width set so that the text is the width I want it onscreen. The problem is that when 'overflow:auto' kicks in for long text, the vertical scrollbar on the right pushes in the right text edge.

Is there an easy CSS trick to keep the same text width and push the scrollbar to the right, "outside" the text box? My text div is in a container div, so I can work with that.
11:43 am on Mar 8, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 10, 2005
posts:387
votes: 0


Resolved - I'll use a work-around.
3:54 pm on Mar 18, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Aug 9, 2008
posts: 961
votes: 0


Hi sssweb, sorry to be late to this. Thanks for indicating you've solved the problem, but this is an interesting issue - would you mind briefly describing the work-around you used?