![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hello, i see that <table align="center"> is no longer valid markup in XHTML. nor is <center><table></table></center>. how then does one center a table? |
#3
| |||
| |||
|
|
On Feb 14, 1:31 pm, SpaceMarine <spacemar... (AT) mailinator (DOT) com> wrote: hello, i see that <table align="center"> is no longer valid markup in XHTML. nor is <center><table></table></center>. how then does one center a table? Set the left and right margins of the table to "auto" in your style sheet. |
#4
| ||||
| ||||
|
|
i see that <table align="center"> is no longer valid markup in XHTML. |
|
nor is <center><table></table></center>. |
|
how then does one center a table? |
|
surely this most be a common task? |
#5
| |||
| |||
|
|
Nick Theodorakis wrote: On Feb 14, 1:31 pm, SpaceMarine <spacemar... (AT) mailinator (DOT) com> wrote: hello, i see that <table align="center"> is no longer valid markup in XHTML. nor is <center><table></table></center>. how then does one center a table? Set the left and right margins of the table to "auto" in your style sheet. Which will not work with older versions of IE still being used, so you may have to handle that. |
#6
| |||
| |||
|
|
Scripsit SpaceMarine: i see that <table align="center"> is no longer valid markup in XHTML. It is. nor is <center><table></table></center>. It is. |
|
There are ways to do that in CSS (consider checking the FAQs), |
|
surely this most be a common task? It's not. Why would you want to center a table? |
#7
| |||
| |||
|
|
It'll work with IE down to version 6 as long as standards mode is invoked (and it needs to be invoked even to get it work with IE7). If the OP wants to make it work with IE5 (and even Netscape 4) I still have my old table centering page up: http://theodorakis.net/tablecentertest.html |
#8
| |||
| |||
|
|
There are ways to do that in CSS (consider checking the FAQs), but why bother, if you already know the HTML way? |
#9
| |||
| |||
|
|
not according to my XHTML 1.0 Transitional validation tool (Visual Studio 2005) -- "...is considered outdated. A newer construct is recommended." |
|
are you always such a useless fart-bubble twit? or just online? |
#10
| |||
| |||
|
|
On Feb 14, 2:09 pm, "Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote: Scripsit SpaceMarine: i see that <table align="center"> is no longer valid markup in XHTML. It is. nor is <center><table></table></center>. It is. not according to my XHTML 1.0 Transitional validation tool (Visual Studio 2005) -- "...is considered outdated. A newer construct is recommended." |
|
There are ways to do that in CSS (consider checking the FAQs), im asking here. |
|
surely this most be a common task? It's not. Why would you want to center a table? who are you to question why i want to center a table? |
![]() |
| Thread Tools | |
| Display Modes | |
| |