CSS help - centering a div

Discussion in 'Web Design and Development' started by Matt T, Nov 2, 2006.

  1. Matt T macrumors regular

    Matt T

    Joined:
    Dec 1, 2005
    Location:
    Australia
  2. nightelf macrumors 6502

    Joined:
    Mar 25, 2003
    #2
    For the rest of the readers, to center horizontally a div you set margins left and right to auto.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page