Does anyone know how to center a table on a page using an external CSS. I am trying to eliminate the Deprecated <CENTER> tag from my html code.
the current html code is :
<HEAD>
<TITLE </TITLE>
<link rel="stylesheet" type="text/css" href="generic.css" />
</HEAD>
<BODY>
<CENTER>
<TABLE WIDTH="90%" NAME="tblParent" >
<TR><TD> something here</TD></TR>
</TABLE>
</CENTER>
my external CSS contains:
table
{
padding: 0.0cm;
background-color: #EBE6DE
}
the current html code is :
<HEAD>
<TITLE </TITLE>
<link rel="stylesheet" type="text/css" href="generic.css" />
</HEAD>
<BODY>
<CENTER>
<TABLE WIDTH="90%" NAME="tblParent" >
<TR><TD> something here</TD></TR>
</TABLE>
</CENTER>
my external CSS contains:
table
{
padding: 0.0cm;
background-color: #EBE6DE
}