Gmail - How does it do this?

I was using Gmail and suddenly the Gmail Chat window appeared inlined alongside my message.  What got my attention was that the window hovers over the main body of the window without bobbing up and down like so many failed attemptes at Javascript repositioning.  How do they do this?  

Check out the pic here:  http://fapomatic.com/14/gmailchat.gif

The window sits perfectly static above all text beneath it unaffected by the main window's scrolling.

Are they using some special IE6 command or is the Google activex toolbar assisting in some way.

Im using Windows XP Pro SP2 with IE6.

Thanks.
anistonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

csgeekpyroCommented:
Its nothing fancy, just some CSS tricks to make the box float above tha page layout.  It works in firefox too.  I'd suggest looking at the page source and any css files it references to see the code that does it.
0
anistonAuthor Commented:
WHat are the CSS commands to perform this effect?  I know about Position and Float but these wont keep a block perfectly fixed and overlayed over another while scrolling the main window.
0
purfusCommented:
Theres some google thing that uses that too.  It's becoming a new fad.  
0
SammoCommented:
Hi,

Check out this code:

<div style="z-index: 1; position: absolute; right: 10px; bottom: 10px; background-color: #cc3300; width: 280px; padding: 10px; color: white; ">Hello World</div>

This would create a floating box which constantly stayed in the bottom right corner of the page. If you just play around with the values you should be able to get what you want!

Hope this helps
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.