i have trouble with internet explorer and centering , my question is how can i centering a div without the CENTER tag and it got to work in all the browsers , because i was using
margin:auto;
it works in all borwsers but it does not work in internet explorer i'm looking for something that will work in all the browsers someone told me to put
text-align: center;
to the body but than all the text has go to the middle
so how can i do that?
You're close. Use the CSS below:
margin:0 auto;
Here's a working jsFiddle. Note that I gave the div a fixed width.