50% OFF!!!

Thursday, February 18, 2010

xHTML | Align center table

After hours of searching and checking, the following code makes your table
to align center of the screen.
This code tested and working on some WAP xHTML (MP) devices.

The first code should set table's margin as the following:
  margin-left: auto;
  margin-right: auto;

now, insert your table in div element:
<div style="text-align: center;">

Ask question if needed...

No comments:

Post a Comment