Question

I have this little problem with my table. I've tried to set my heights and widths, but it won't work. I really don't know what to do!

My table can be seen here testpage.

Here is a fiddle: http://jsfiddle.net/Zn9ep/4/

I hope you will help me!

Était-ce utile?

La solution

The width and height of a table should be large enough to fit all the cells. If not, the table will adjust itself and ignore the size that you set.

The extra height of your cells comes from the <p> tag, since paragraphs are suppose to be isolated pieces of text.

You can still format your texts without wrapping them in <p> by simply formatting the text container (i.e. the table cells).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top