
Originally Posted by
Philosophaie
This is in MySite.aspx
Error code - Elements "Table" or "center" cannot be nested within element "font".
The font tag was deprecated years ago (in strict doctypes) and has no place in modern sites. It's an inline element anyway and cannot contain block elements.
Remove the font tag and remove the center tag and apply a class to the table instead.
e.g.
Code:
<body>
<table class="my-table">
<tr>
<td>Text1</td>
<td>Text2</td>
<td>Text3</td>
</tr>
<tr>
<td>Text4</td>
<td>Text5</td>
<td>Text6</td>
</tr>
</table>
Then add this css to your main css file:
Code:
.my-table{
margin:auto;
border:1px solid #000;
color:#0ff;
}
.my-table td{border:1px solid #000}
Hope that helps.
Bookmarks