Faux-Fixed Interactive Email Scrolling Technique
A common technique used on web-pages to make blocks of content stay stationary while the page is being scrolled is by using fixed positioning (position:fixed).
Unfortunately, this CSS property is not supported by the majority of email clients so we need to resort to some trickery to get this to work.
I wrote on the Email on Acid blog a technique to mimic fixed positioning yet works on a surprising number of email clients, namely: iOS (iPhone, iPad), Apple Mail, Outlook for Mac, Gmail webmail and mobile apps (yes!) and Yahoo! webmail.
The technique combines the following techniques:
- Overflow scrolling
- Mark Robbins’ absolute positioning technique
- A method to shift stacking order without the use of z-index.
I built an example for Email on Acid’s Halloween email.
Since Outlook.com strips position and opacity, we’re unable to use stacking order tricks in Outlook so it doesn’t work there.
Read the article for more details.
http://view.email.mancity.com/?qs=9ef3a3012c24852cf314c284368a8f839435b4ec216eccd172e4567722ee470f3381d33b69e096aed1c3adaaee1642652143c8ca17314b202f177e0f8ae4cafad167c1c5baa9a4bcf9ae6370ad41cc5be0daeb5fae9a2e33
Very nice! Thanks for sharing :)