Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are there still gaps even between text rows in tables when the layout engine is in the Standards mode or in the Almost Standards mode?

0
Posted

Why are there still gaps even between text rows in tables when the layout engine is in the Standards mode or in the Almost Standards mode?

0

In the Standards mode and in the Almost Standards mode Mozilla does not suppress the default margins of the first and last child element in table cells. Therefore, the default margins for paragraphs apply even with markup such as

foo

. Often the content of a cell in a table of tabular data does not constitute a paragraph. In that case, the easy solution is not to mark the contents of the cell as a paragraph. When the paragraph markup is called for but the default margins are unwanted, zero margins can be suggested using CSS.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123