June 9, 201313 yr I have the following code in css: *{padding:0;margin:0; } body { width: 605px; height:987px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin: 0px; padding: 0px; background-image: url(bk_03.gif); background-repeat: repeat-x; } #container { width: 605px; height:987px; margin:auto; } #header { width: 605px; height: 987px; margin: auto; background-image: url(layout_02.gif); background-repeat:no-repeat; position:relative; margin-top:+1px; border:0; } and the folowing in html: <title>Untitled Document</title></head><body> <div id="container"> <div id="header"></div></div></body></html> I want the header to be align centered and I do not understand why do not work. Can you help me? Thanks, Alisia
June 9, 201313 yr it is going in the centre of the body but its because you have this the same width remove the width from your body
Create an account or sign in to comment