how to center in browser

Out of context: Reply #7

  • Started
  • Last post
  • 25 Responses
  • sp0

    or, you could do it the CORRECT way and use 'display:block' with margin-left:auto, and margin-right:auto in CSS.

    it is poor practice to use tables for layout, since they're intended for spreadsheet data and that is all.

    and, using text-align:center in the body with css only works in a couple of browsers.

    the correct and compliant way to do it is with display and margins.

View thread