Draex_
Draex_

Reputation: 3474

td's width is ignored

I have set table-layout: fixed, width and padding for column but real width is higher per 22px than it should be. What can cause this?

illustration

Upvotes: 0

Views: 90

Answers (1)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201588

You have set the table width to 1000px and cell widths in pixels, too, so that they do not add up to 1000px. Obviously, a browser has to make the cells wider or to ignore the setting on the table as a whole. It is better that you as an author make such a choice, e.g. by simply removing the width setting on the table.

Upvotes: 1

Related Questions