How do I position / align a table to display in the centre of the page? Is it to do with the body tag?
I tried the using align in the body, and my headings and row data was also aligned in the middle of the cells.
Any advice appreciated. Thanks.
Probably a couple of ways. You could use align="center" in the table tag, or you could enclose the table in a div with margin-right and margin-left set to "auto"
But, I would like it so my (small) table is in the centre of the browser and not just the middle (top).
Hope to hear again...
since you already use tables you could might aswell add <center> tag.
but you should consider using divs for layout
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)