View Single Post
Old 29-07-2004, 13:24   #3
Richard M
cf.mega poster
 
Join Date: Jun 2003
Age: 29
Posts: 6,273
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 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