Journal | Christofer Sandin

CSS Centering a la Cederholm

Sometimes, people that have started to do webdesign using CSS instead of building complicated layouts using multiple nested tables asks how to center something on the screen. Even if CSS usually makes everything a lot easier there are some parts that are a bit tricky in the beginning, and centering content is one of them. Dan Cederholm at SimpleBits has described a simple and effective way in his article “CSS Centering 101”.

So, if you’re new to CSS – enjoy this little article.

Go to the start page  |  Go to a list of all journal entries