homepage Welcome to WebmasterWorld Guest from 54.237.95.6
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
maintaining div width with 'overflow: auto'
sssweb




msg:4425662
 6:28 pm on Mar 6, 2012 (gmt 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.

 

sssweb




msg:4426436
 11:43 am on Mar 8, 2012 (gmt 0)

Resolved - I'll use a work-around.

alt131




msg:4430582
 3:54 pm on Mar 18, 2012 (gmt 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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved