homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

CSS Forum

maintaining div width with 'overflow: auto'

 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.



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

Resolved - I'll use a work-around.


 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved