html
<html> <head> <title>Im Confused</title> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <div id="mbody"> content </div> </body> </html>
css
#mbody {
position:relative;
margin:0px;
width:1000px;
height:100px;
border:2px solid red;
margin-left:auto;
margin-right:auto;
}
i have tried this with and without the position:relative and it changes nothing. i have a website that i had already figured out this problem. i figured i would just mimick the code to recreate it. i have failed misreably. after searching tutorials on how to center a div using margin-right/margin-left auto i have still failed. first person to point me to the errors of my pathetic ways will get to take the first turn in a game of roshambo.

New Topic/Question
Reply


MultiQuote



|