How do you specify table padding in CSS? ( table, not cell padding )

前端 未结 12 1350
我在风中等你
我在风中等你 2020-12-15 02:18

I have a table with a colored background and I need to specify the padding between the table and it\'s content, I.E. cells.
The table tag doesn\'t seem to accept a paddi

12条回答
  •  青春惊慌失措
    2020-12-15 03:05

    You can't... Maybe if you posted a picture of the desired effect there's another way to achieve it.

    For example, you can wrap the entire table in a DIV and set the padding to the div.

提交回复
热议问题