# CSS: Efficient Centering of DIV content

**URL:** <https://forum.kirupa.com/t/css-efficient-centering-of-div-content/160396>\
**Category:** web dev\
**Created:** [August 25, 2005, 4:29pm UTC](https://forum.kirupa.com/t/css-efficient-centering-of-div-content/160396 "2005-08-25T16:29:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanzinato](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zanzinato/32/504_2.png) [@zanzinato](https://forum.kirupa.com/u/zanzinato)\
**Post date:** [August 25, 2005, 4:29pm UTC](https://forum.kirupa.com/t/css-efficient-centering-of-div-content/160396/1 "2005-08-25T16:29:43Z")

</div>

[font=System][size=2]Hello,

I’m interested in some feedback and suggestions on centering both horizontally and vertically DIV content on the following page.

[www.demo.zanzinato.com/center](http://www.demo.zanzinato.com/center)

I am trying to move away from a tables based layout and would like this to be as clean and optimized as possible. I am aiming for fixed horizontal width but fluid vertical height. I’ve got a pretty good start however I would like to get it working in Mac IE 5.2.3 and it seems to be having trouble with one of the backgrounds.

If you could glance this over I would be most interested in other opinions.

Thanks a lot!  
[/size][/font]
