My module contains a table structure with specific components. Here is the source code for table.component.html:
<table border=1>
<theader></theader>
</table>
The source code for theheader.component.html is as follows:
<thead #theader>
<tr><td class="alignCenter underlineText">Table Header</td></tr>
</thead>
In addition, here is the content of style.css:
.alignCenter
{
text-align: center;
}
.underlineText
{
text-decoration: underline;
}
table
{
border-spacing: 0;
border-collapse: collapse;
width:1660px;
}
I am facing an issue where the text "Table Header" is not aligning center, despite the underline decoration working correctly.
Even though the computed CSS shows that the text should be aligned, it does not reflect in the output. Please refer to the screenshot attached for clarification.
You can view my application on stackblitz here.