views:

303

answers:

1

Hey,

I am working on this site: http://waterwing.waterwing.ca/

The top right corner animation is perfect except for that it creates a horizontal scrollbar with the way it's positioned.

It's absolutely positioned -120px top and right. I'm just wondering how I can make it so it won't extend the body and will just hide itself once it hits the edge of the page so that there is no scrollbar.

The scrollbar seems to not be there on Windows Firefox but is there on Mac Firefox and Safari.

Thanks, Wade

+5  A: 

wrap #corner in another div and set it to the dimension occupied by the end point of the animation as well as position absolute. set the overflow on this div to hidden that will keep it from bleeding off the page and triggering the scroll.

prodigitalson
Yup. Hidden overflow is what you want.
Azeem.Butt
Perfect, the div was too big on 1024 resolution also so I had to start it at a smaller size then grow it with jquery when you hover. I think everything's perfect now, thanks again!
Wade D Ouellet