Jump to content


Photo

Centre a table


  • Please log in to reply
4 replies to this topic

#1 alecjw

alecjw
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationHatfield, Herts, UK

Posted 27 August 2006 - 04:20 PM

Hi. I want to centre a table in page, how do i do it?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 27 August 2006 - 04:21 PM

<table align='center' ....

Legend has it that reading the manual never killed anyone.
My site

#3 alecjw

alecjw
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationHatfield, Herts, UK

Posted 27 August 2006 - 04:27 PM

Soz, I meant XHTML strict. I wasn't clear. There is no align attribute in strict.

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 27 August 2006 - 04:56 PM

CSS style - table { margin-left:auto; margin-right:auto; text-align: center; }
Legend has it that reading the manual never killed anyone.
My site

#5 alecjw

alecjw
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationHatfield, Herts, UK

Posted 27 August 2006 - 05:45 PM

Thanks a lot!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users