[thelist] Removing scroll bars

MRC webmaster at equilon-mrc.com
Tue Feb 19 15:37:01 CST 2002


Matt,

> A small variation on this question, what would be a good way to have
> scrollbars hidden if the content doesn't take up more than one page?
> scroll="auto" does this but again, doesn't validate.

    But doing the very same thing with CSS is trivial, and will validate:

html, body
{
    overflow: auto ;
}

    This will hide the scrollbars if they are unneeded, but will display
them if they are needed -- perhaps the best of the various solutions.

James Aylard




More information about the thelist mailing list