S
Scott M.
align="center" can still be used without any issues if you are using HTML or
XHTML Transitional (which are the most common forms of HTML and XML).
align="center" is considered to be deprecated by the World Wide Web
Consortium or W3C (the people who set the standards for HTML and other
technologies) and has been for about a decade, so using it in earlier
versions of .NET would still have put it in the deprecated "camp".
Because so many millions of web pages use the align attribute, the W3C
created a "flavor" of HTML which still allows for its use, the
"Transitional" flavor. If you are using this, then there is no problem
using align.
If you want to follow the "Strict" flavor, which says that align is
deprecated and can't be used, then you must use Cascading Style Sheets (CSS)
to do this:
<table id="something" style="margin-left: auto; margin-right: auto;">
Refer to these following links for more info:
http://www.captain.at/howto-css-horizontal-alignment.php
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/HorizontalAlignment.html
-Scott
XHTML Transitional (which are the most common forms of HTML and XML).
align="center" is considered to be deprecated by the World Wide Web
Consortium or W3C (the people who set the standards for HTML and other
technologies) and has been for about a decade, so using it in earlier
versions of .NET would still have put it in the deprecated "camp".
Because so many millions of web pages use the align attribute, the W3C
created a "flavor" of HTML which still allows for its use, the
"Transitional" flavor. If you are using this, then there is no problem
using align.
If you want to follow the "Strict" flavor, which says that align is
deprecated and can't be used, then you must use Cascading Style Sheets (CSS)
to do this:
<table id="something" style="margin-left: auto; margin-right: auto;">
Refer to these following links for more info:
http://www.captain.at/howto-css-horizontal-alignment.php
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/HorizontalAlignment.html
-Scott