Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.
Has anyone written a centering function with Prototype which centers an
element on a page (both vertically and horizontally) regardless of the
amount that the page has been scrolled?