Hi,
I am trying to figure out what causes IE 6 and Mozilla 1.7.5 to interpret the following differently. I would like to center my page using css. To start from the beginning I am creating a div with nothing in it, centering it and adding a border. I would expect both browser to "behave" similair. I think that Mozilla is showing me exactly what I want it to show me, a horizontal line. But IE 6 is giving me a box, something I didn't expect.
I would appreciate some explanation and some way to have the browser behave the same.
This is what I have in my html:
<body><div id="wrap"></div></body>
This is my CSS:
/* CSS Document */
* {
margin:0;
padding:0;
border:0;
}
body {
text-align:center;
}
div#wrap {
width: 750px;
margin:0 auto;
border:1px solid black;
}
Hope to hear from you
Greetings
Zackat
(PS, sorry for replying on previous post, with this new post)
I am trying to figure out what causes IE 6 and Mozilla 1.7.5 to interpret the following differently. I would like to center my page using css. To start from the beginning I am creating a div with nothing in it, centering it and adding a border. I would expect both browser to "behave" similair. I think that Mozilla is showing me exactly what I want it to show me, a horizontal line. But IE 6 is giving me a box, something I didn't expect.
I would appreciate some explanation and some way to have the browser behave the same.
This is what I have in my html:
<body><div id="wrap"></div></body>
This is my CSS:
/* CSS Document */
* {
margin:0;
padding:0;
border:0;
}
body {
text-align:center;
}
div#wrap {
width: 750px;
margin:0 auto;
border:1px solid black;
}
Hope to hear from you
Greetings
Zackat
(PS, sorry for replying on previous post, with this new post)