Quick Tip: Centered Fake Floats
# Linked to 14 May 2009, 02:30 in Tips by Sam Brown
Up till (relatively) recently, I had a major gripe with HTML & CSS. I couldn’t find a proper, efficient, semantic way to center align left floated elements.
Gee, what a mouthful, even writing about it gets me edgy. After a bit of tinkering, I found an efficient and (mostly) cross-browser way to center elements, without resolving to floats.
Tweet this on Twitter ↩ Add to Delicious + Subscribe to the RSS Feed →