Click to See Complete Forum and Search --> : SCROLL=AUTO not valid
Rodders
09-16-2003, 06:47 PM
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
Rich
PeOfEo
09-16-2003, 06:49 PM
Scroll isnt a valid attribute. Try this <body style="overflow:auto;">
Rodders
09-16-2003, 06:51 PM
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.
PeOfEo
09-16-2003, 06:57 PM
Hey no prob, just happy I could help.
Rodders
09-16-2003, 06:57 PM
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.
PeOfEo
09-16-2003, 07:02 PM
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.