LWN.net Logo

page layout -- horizontal scrolling

page layout -- horizontal scrolling

Posted Sep 11, 2007 15:37 UTC (Tue) by JLCdjinn (guest, #1905)
In reply to: page layout -- horizontal scrolling by grouch
Parent article: An LWN reader survey

CSS offers at least one elegant solution to this problem with the overflow property. When set to "auto", a block that is too wide will automagically generate its own scroll bars; other blocks are not affected.

For LWN, the rule would look something like this:

div.CommentBox
{
  overflow: auto;
}


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds