The Blog

Relaxed dead centre layout

This post is more of a reminder for me than anything new, as I need this splash thing from time to time and never can remember where I keep it.

95% of code is from Dušan Janovský. I merely simplified it, thus instead of 3 or 4 nested divs, you need just one div, for the actual content. html and body play the role of table and table-cell respectivelly. Pure semantics. :)
For IE6 and IE7, I opted for the expression property, masked under conditional comments. No other solution I encountered is flexible enough.

This solution has 100% of the available height to spread, because there is no fixed height set for the content div.

Banca

Banca

Beautiful and functional currency converter, supports just about any currency in the world.

Go Couch to 5k

Go Couch to 5k

The most popular starter running program in beautiful feature-rich app (GPS tracking, charts, detailed history etc)

Quickie to do

Quickie to do

The fastest short-term task-list / check-list app on the App Store. Really.

Guerrilla Cardio

Guerrilla Cardio

The most challenging high-impulse interval training in the world.

Run Mate

Run Mate

A versatile running coach app, with unlimited number of running programs. Perfect for casual runners.

One Comment

Feel free to chime in, looking forward to it. Leave a Comment

  1. xippi says:

    Thanks. This is probably the easiest way to vertically center things. I’ve noticed that when you add some fixed width value to .deadcentre layout brakes down in firefox without stretching body width to 100%

    http://klodovik.com/playground/rdc/rdc-fixed.html

Leave a Comment

Add your comment here, just please be civilized and stay on topic.