Home >Web Front-end >HTML Tutorial >When tables are nested, why can't the tables inside be aligned at the top? _html/css_WEB-ITnose

When tables are nested, why can't the tables inside be aligned at the top? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:441594browse

There is a table nested in td. How to align the td inside the table with the th outside the table?


Reply to the discussion (solution)

Just go to the code. ..

margin:auto ??

can be aligned. I guess there is too much content in other cells in the row where the td is located. The row is raised, so the table inside Using 100% will not fill up the
. The actual situation requires looking at the code

*{margin:0;padding:0;}

In addition, add valign="top" to the tr of the td in the line where the embedded table is located

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn