LWN.net Logo

page layout -- horizontal scrolling

page layout -- horizontal scrolling

Posted Feb 1, 2007 16:22 UTC (Thu) by grouch (guest, #27289)
In reply to: page layout -- horizontal scrolling by corbet
Parent article: An LWN reader survey

The article GPL 3: An Open-Source Earthquake? (CRN) is one which now appears with a long horizontal scrollbar for me. Each line is about twice the width of my browser. Best I can tell, it comes from one plain-text URL widening one column of the table.

It doesn't happen often but it is most likely to happen when there are lots of comments. It is also a method by which someone can work deliberate mischief.


(Log in to post comments)

page layout -- horizontal scrolling

Posted Sep 11, 2007 15:37 UTC (Tue) by JLCdjinn (guest, #1905) [Link]

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;
}

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