locking a div to the top or bottom of browser window

S

sso

Gmail does this when it says "Sending.." or "working.." even when
you scroll down the page the little box stays top and center.
Perfectly smooth.

How is this done?

http://www . comodo . com/ is an example of a site that does this
(lower right).
 
A

Andy Dingley

Gmail does this when it says "Sending.."  or "working.."   even when
you scroll down the page the little box stays top and center.
Perfectly smooth.

How is this done?

Well for that particular example, look at their source and see for
yourself.

Otherwise use CSS and position:fixed; Clean, simple, pretty good
browser support these days.

To remain on topic for the ng and also pretend that ancient browsers
are still important, then it can be done with some trivial JavaScript
too. Web search for it.
 
T

Thomas 'PointedEars' Lahn

sso said:
Gmail does this when it says "Sending.." or "working.." even when
you scroll down the page the little box stays top and center.
Perfectly smooth.

How is this done?

Hopefully with CSS position:fixed, and not with client-side scripting
(at least not for IE 7+). RTSL.
http://www . comodo . com/ is an example of a site that does this
(lower right).

Great idea making it difficult for people to go there ...


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top