1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Center justify style

Discussion in 'Styling and Customization Questions' started by Gandalf42, Nov 13, 2011.

  1. Gandalf42

    Gandalf42 Member

    I'm trying to set the boundaries for the forum layout and added 'max-width: 1024;' to the style to cap the max width. However this left justifies the forum on the screen. Is there a way to cap it and have it center the forum layout?

  2. steel_curtain

    steel_curtain Well-Known Member

    You'll need to add margin:auto after the max-width like below.

    margin: auto;
  3. Gandalf42

    Gandalf42 Member

  4. ToDie4

    ToDie4 Well-Known Member

    You need to set the top and bottom margins to 'zero' ideally, so use margin: 0 auto;

Share This Page