Categories
Old Archives

Absolute Horizontal And Vertical Centering In CSS | Smashing Coding

Absolute Horizontal And Vertical Centering In CSS | Smashing Coding We’ve all seen margin: 0 auto; for horizontal centering, butmargin: auto; has refused to work for vertical centering… until now! But actually (spoiler alert!) absolute centering only requires a declared (variable) height and these styles: .Absolute-Center { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } I’m […]

Categories
Old Archives

A Simple Parallax Scrolling Technique | Nettuts

A Simple Parallax Scrolling Technique | Nettuts DownloadSOURCE FILES DemoVIEW IT ONLINE Parallax scrolling is an interesting technique, where, as you scroll, the background images translate slower than the content in the foreground, creating the illusion of 3D depth. As I planned to re-design my personal website, my first goal was to write the shortest and […]