CSS – Centering Elements

There are many ways to center elements on a web page, I read from many blogs, tutorials, and find the easiest way to center different elements.

Below is a demo page that shows how to center: text, table and image on a page.

http://www.lab.highub.com/css/css-centering-elements-pt1.php

below is a demo page that shows how to center an image both horizontally and vertically.

http://www.lab.highub.com/css/css-centering-elements-pt2.php

Be Sociable, Share!

About Shi Chuan

I am a web developer.
This entry was posted in CSS Core and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>