Center DIVs To center a DIV container use the following: padding-left:auto; padding-right:auto or margin:auto; in your css file Make sure you also set the width of your “DIV” tag