Just another pressurer blogger …

Archive for the ‘css’ Category




Auto-width Margins for centering

Ok. I’ve always used div align=”center” to horizontally center a container within another container. I know it’s on the “depreciated” list, but all the browsers still respect it – and it’s just always how I’ve done things. However, I was working in a friends CMS (un-named), and realized that it was changing my code to div style=”text-align:center” which I KNOW is not the correct way to do things (even though I have used it in the past with some success centering block-level elements).

Read more ...