SCROLL=AUTO not valid

liunx

Guest
I am trying to validate my page as HTML 4.01 Strict.

I want to turn the scroll bar(s) on/off automatically. I know you can say:

<BODY SCROLL=AUTO>

but this isn't valid HTML 4.01 Strict.

Is there a CSS way of doing this ?

Thanks

RichScroll isnt a valid attribute. Try this <body style="overflow:auto;">You know, I'm sure I tried that and it didn't work !

But, it does work so thanks.

I have another query, so I'll post a new thread.

Thanks again.Hey no prob, just happy I could help.It's not working now! I resized the browser window to test it and it seemed to be working. But now the scroll is there and it won't go away.Well, turning off the scroll bars or makeing the overlow hidden is not the answer so, how about playing with the height and width. Html 4.01 strict seems to have the height property depreciated so you will need css. See if this works.
<body style="overflow:auto;width:auto;height:auto;">
If that doesnt do it play with it by changing the auto to 100% etc.
 
Back
Top