Fri, 2010-01-22 00:59
A while back I must have read or seen an example of using position: relative for the <body>
of an HTML document:
body { position: relative; }
I have been doing this with no apparent problems on many of my pages. Just today I ran into a problem. Some JavaScript code that I've used for a long time on other pages no longer works properly when I make the body have position: relative. The JavaScript allows dragging and dropping items to new positions in a ul.
First, I don't see the connection. But second, SHOULD I use position: relative for the body of ANY page? Are there any advantages to doing it? Are there any disadvantages (other than my particular JavaScript problem)?
Thanks.
Ken