[Sigia-l] Reports w/ Horizontal Scrolls

Jonathan Baker-Bates Jonathan.Baker-Bates at lbi.com
Fri Jun 22 10:35:06 EDT 2007


> -----Original Message-----
> From: sigia-l-bounces at asis.org 
> [mailto:sigia-l-bounces at asis.org] On Behalf Of Susan Rice
> Sent: 22 June 2007 15:08
> To: sigia-l at asis.org
> Subject: [Sigia-l] Reports w/ Horizontal Scrolls
> 
> I'm working on a project where we're providing some reporting 
> online with the option to download to Excel. It's very likely 
> that the data will require the use of a horizontal scroll 
> within the table and depending on the report, the user may or 
> may not need to scroll vertically too. Unfortunately, we 
> can't rely on JavaScript or Web 2.0 for coding the display 
> (e.g., can't do any detects based on amount of data, can't 
> keep the header info in place when scrolling down, etc...). 
>  
> With that in mind, do you suggest providing an internal 
> vertical scroll which requires that we define a fixed height 
> for the table or should the user use the browser scroll? Here 
> are some considerations:
> 

I'd just use a div with an overflow:

<div style="width:500px;height:300px;overflow:auto">

It's plain CSS2, but if the browser can't parse it they just see the
whole table without any fuss. If the table is short (in the example
above, less than 300px), the scrollbar won't display. Put the row
headings above it though, obviously.

Jonathan


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




More information about the Sigia-l mailing list