Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

maintaining div width with 'overflow: auto'



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

10+ Year Member

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)

10+ Year Member

Resolved - I'll use a work-around.


3:54 pm on Mar 18, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

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?

Featured Threads

Hot Threads This Week

Hot Threads This Month