[thelist] CSS help this time...

Ben Glassman bglassman at gmail.com
Tue Nov 27 09:51:29 CST 2007

On Nov 27, 2007 10:44 AM, Dan Parry <dan at virtuawebtech.co.uk> wrote:

> I've set up a div that is
> 2000px wide but clipped to 550px (there's going to be some JS wizadry,
> theoretically)
> Problem is this introduces scrollbars into the page to reflect the clipped
> area

Why not specify css rules of "width: 550px; overflow: hidden" on the div
rather than using JS. This will allow you to put content of any width into
the div without causing scrollbars in your browser. Any content outside of
the 550 pixels of width you specify will be clipped off.


More information about the thelist mailing list