Monday September 6th 2010

Oldy But Goody: Centering with CSS

One of the most commonly asked questions I get about CSS is how to center things. It was really easy when we just used the deprecated <center> tag. But trying to do it with CSS can sometimes be very frustrating. That’s because CSS treats block-level elements differently from inline elements (except <img />, which is a block-level tag, but it centers like an inline tag). In my centering with CSS article, I teach you how to center anything on your page. I even show you how to center things vertically. And if that’s not enough, you can learn how to center a document with a fixed width layout and center a document with a liquid layout.

Leave a Comment

More from category

Web Design Software Pick of the Week: Page Speed

Site speed is getting more and more important, not less. And knowing that your site is loading quickly can benefit your [Read More]

Poll: What social networks do you belong to?

Social networks are getting more and more popular. People use them to connect with friends and colleagues, stay [Read More]

Speed Up Your Sites by Compressing the Files

Back in April, Google announced that they were adding a new signal to their ranking algorithm – speed. I have [Read More]

Wordless Wednesday – Working Designer Profiles – Geoff Snow

How did you become a web designer? Fill out this form (be sure to include a photo) to be featured on the home page of [Read More]

Web Design Software Pick of the Week: deviantART Web Interface Designs

If you’re looking for inspiration for your next design project, I would suggest looking at the images displayed [Read More]

Insider

Archives