954,577 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

table problem

I have an .aspx file and i try to align the table to the center. But when i do this

<table style="text-align:center">


it does not work.

It shows the table always at the left side of the page.

Xessa
Junior Poster in Training
58 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 


This is to align the content/data inside the table
One way to achieve your requirement is to put your table inside a div and align the div to center. Here is a sample


Name
Roll NO
Class
Alex
20901
10
Betty
20902
11

Aneesh_Argent
Junior Poster
104 posts since Dec 2008
Reputation Points: 16
Solved Threads: 18
 

hi,

you can try like this

<center>
<table >
</table>
</center>
greeny_1984
Posting Whiz
372 posts since Apr 2007
Reputation Points: 25
Solved Threads: 29
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You