# Css centering

**URL:** <https://forum.kirupa.com/t/css-centering/242073>\
**Category:** web dev\
**Created:** [October 22, 2007, 4:38am UTC](https://forum.kirupa.com/t/css-centering/242073 "2007-10-22T04:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aveceva](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@aveceva](https://forum.kirupa.com/u/aveceva)\
**Post date:** [October 22, 2007, 4:38am UTC](https://forum.kirupa.com/t/css-centering/242073/1 "2007-10-22T04:38:04Z")

</div>

Hey guys,

I did a quick search and didn’t really find an answer - perhaps its cause i just got up and still wearing a towel. A wet towel…

Ive got this css running right now:

#text {  
position: relative;  
margin: 0 auto;  
width: 790px;  
height: 500px;  
z-index:1;  
}

It works perfectly in firefox but for IE it doesnt center. Any ideas?

Thanks in advance  
Tom
