No replies
kenmorgan
kenmorgan's picture
Offline
Regular
Last seen: 11 years 38 weeks ago
Timezone: GMT-5
Joined: 2009-07-29
Posts: 21
Points: 9

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