Web Design: Finding Your Center

Read at your own risk

This document dates from the early web period, and is kept for archival purposes only. It is no longer updated, and contains much that is apocryphal, or at least wildly inaccurate.
  1. When You’ve Been Framed!
  2. Web Design
  3. Or What’s an Image For?

There are two ways of centering things in HTML. The “correct” way is to use the ALIGN=CENTER addition to the paragraph-level tag. For example, if you’re centering a level 2 heading, use <H2 ALIGN=CENTER>. Both Netscape and Internet Explorer understand this enhancement to HTML.

Netscape doesn’t handle the ALIGN addition correctly on all features, however. It doesn’t, for example, center a table that’s within a centered paragraph. (Others do.) For that, you’ll need to use <CENTER>, at least until Netscape fixes their browser and the new browser penetrates.

(Outside of HTML, the correct way today to center items is with style sheets.)

  1. When You’ve Been Framed!
  2. Web Design
  3. Or What’s an Image For?