Bringing it Center Align Website

By:Tyler Allen

So this may seem stupid, but I have been having trouble with this all semester, and here is how to center align your website in any browser including IE for your grandma. The code is:

body {
text-align: center;

#wrapper {
margin: 0 auto;
width: 1200px;

This will center align the entire website allowing for more freedom in the website formatting, for instance aligning one part of the screen with elements, and the other sections with another. In the standard left align setting this looks rather crude, but in the new center alignment, we can shape how we want the website to look, without worrying about a bunch of empty space on one or the other side. Hope this helps, and I am not the only one who has been struggling with this. PEACE OUT :).




~ by allentyler2991 on March 25, 2013.

%d bloggers like this: