View Single Post
Old 29-07-2004, 14:24   #3
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: A little help with my website

If you want to center a <div> all you need to do is this CSS:

#centerlayer {
width: 75%; /* Example width */
margin-left: auto;
margin-right: auto;
}

I usually find that this is useful for browsers with good CSS support, I used it on the nthellworld.co.uk homepage:

body {
max-width: 1024px; /* IE doesn't support advanced CSS so this will not work in that browser */
margin-left: auto;
margin-right: auto;
}
Richard M is offline   Reply With Quote