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
Release: 2016-06-24 12:14:44
Original
1589 people have browsed it

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;}
Copy after login

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template