TheFilmGod Posted June 25, 2007 Share Posted June 25, 2007 To center the contents I am using the following CSS: body { background-color: #C0C0C0; margin: 0px auto; width: 950px; } LOOK AT the margin: 0px auto; It works in IE 6 and FF well, but it does not give any top margin. Seems like its cut off! How do I fix this so there is a bit of margin at top and its still centered? Quote Link to comment Share on other sites More sharing options...
pikemsu28 Posted June 25, 2007 Share Posted June 25, 2007 try using: body{ background-color: #c0c0c0; margin-left: auto; margin-right: auto: width: 950px; } Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted June 26, 2007 Author Share Posted June 26, 2007 It worked. I changed the : to a ; in the third line. (obviously it was a spelling error). Thank you soo much!! Quote Link to comment Share on other sites More sharing options...
pikemsu28 Posted June 26, 2007 Share Posted June 26, 2007 my bad on the spelling mistake, glad it worked for ya Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.