xfile Posted December 22, 2010 Share Posted December 22, 2010 Asistance! Asistance! Asistance! Asistance! please i am haveing a problem setting the content-wrap of my website to be align at the center of the body or web browser in use by visitorsthe css selector property and value of the content-wrap i setis listed below#content-wrap{margin:3px 0px 0px 100px;border:1px solid #666666;padding:0px;width:992px;height:980px;background:#ffffff;}and the body properties below!body{background: #FFFFFF;margin:auto;padding:0px;}please what more can i do to get this problem fixed its really a pain in the ###### ? Link to comment Share on other sites More sharing options...
jeffman Posted December 22, 2010 Share Posted December 22, 2010 Your body element probably does not need a margin. Add this rule to the ruleset for #content-wrap:margin: 0 auto;If you need top/bottom margins, use this format:margin: t auto b auto;changing t and b to values for the top and bottom margins. Link to comment Share on other sites More sharing options...
xfile Posted December 22, 2010 Author Share Posted December 22, 2010 Thanks,man it works great!! i have fix the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.