No replies
Last seen: 11 years 19 weeks ago
Joined: 2009-02-14
Posts: 7
Points: 0

Please tell me what is the right way to center a div in IE6,7. I tried with margin-left: auto; margin-right:auto but it moved it for 1px left. In Firefox is OK.

body {
background-image: url(ozadje.gif);
background-repeat: no-repeat;
background-position:top center;
div#header {
width: 946px;
height: 42px;
margin-right: auto;
margin-left: auto;
margin-top: 15px;
background: #4e4e4e;

margin-left: 24px;
margin-top: 2px;