How to center tables in articles?
-
It would appear that the old method of centering a table on the page: <table align="center"> no longer works. How does one center a table? Maybe there should be a short HTML guide on using tables in CodeProject articles, useful for us old timers who learned HTML when Netscape was the #1 browser...
-
It would appear that the old method of centering a table on the page: <table align="center"> no longer works. How does one center a table? Maybe there should be a short HTML guide on using tables in CodeProject articles, useful for us old timers who learned HTML when Netscape was the #1 browser...
Two ways. Old school
<center><table...></table></center>
or using standards
<table style="margin:0 auto"> ... </table>
eg
Table Cell
or for full cross browser support
<div style="text-align:center"><table style="margin:0 auto;text-align:left"> ... </table></div>
Table Cell
-
Two ways. Old school
<center><table...></table></center>
or using standards
<table style="margin:0 auto"> ... </table>
eg
Table Cell
or for full cross browser support
<div style="text-align:center"><table style="margin:0 auto;text-align:left"> ... </table></div>
Table Cell
Chris Maunder wrote:
Two ways. (Lists three ways.)
Our chief weapon is surprise... surprise and fear... fear and surprise.... our two weapons are fear and surprise... and ruthless efficiency.... Our three weapons are fear, surprise, and ruthless efficiency... and an almost fanatical devotion to the Pope.... Our four... no... amongst our weapons.... amongst our weaponry... are such elements as fear, surprise.... I'll come in again. ;P https://www.youtube.com/watch?v=vt0Y39eMvpI[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Chris Maunder wrote:
Two ways. (Lists three ways.)
Our chief weapon is surprise... surprise and fear... fear and surprise.... our two weapons are fear and surprise... and ruthless efficiency.... Our three weapons are fear, surprise, and ruthless efficiency... and an almost fanatical devotion to the Pope.... Our four... no... amongst our weapons.... amongst our weaponry... are such elements as fear, surprise.... I'll come in again. ;P https://www.youtube.com/watch?v=vt0Y39eMvpI[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Nooooobody expects the Spanish Inquisition!
-
Nooooobody expects the Spanish Inquisition!
Now, old lady - you have one last chance. Confess the heinous sin of heresy. Reject the works of the ungodly. Two last chances and you shall be free. Three last chances. You have three last chances, the nature of which I have divulged in my previous utterance.
-
It would appear that the old method of centering a table on the page: <table align="center"> no longer works. How does one center a table? Maybe there should be a short HTML guide on using tables in CodeProject articles, useful for us old timers who learned HTML when Netscape was the #1 browser...
try this
for beginning tag and
for end tag