How to get table cells evenly spaced?

前端 未结 8 1923
长发绾君心
长发绾君心 2020-12-09 15:01

I\'m trying to create a page with a number of static html tables on them.

What do I need to do to get them to display each column the same size as each other column

8条回答
  •  独厮守ぢ
    2020-12-09 15:14

    In your CSS file:

    .TableHeader { width: 100px; }
    

    This will set all of the td tags below each header to 100px. You can also add a width definition (in the markup) to each individual th tag, but the above solution would be easier.

提交回复
热议问题