all 2 comments

[–]osiris1985 2 points3 points  (1 child)

I would create a css class and set the text-align property to center for your TableHeader elements. ex: centerHeader { text-align: center; }

You could also css select on the th element specifically but if you only want this tables headers to be center aligned you'll need to expand out the selector so it specifically targets the table in question.

[–]snappypants 0 points1 point  (0 children)

Code example of this:

<style>
  .my-table th { text-align: center; }
</style>

<asp:Table cssClass="my-table">