# CSS/XHTML Centering

**URL:** <https://forum.kirupa.com/t/css-xhtml-centering/67606>\
**Category:** web dev\
**Created:** [October 18, 2004, 2:48am UTC](https://forum.kirupa.com/t/css-xhtml-centering/67606 "2004-10-18T02:48:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brau](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@brau](https://forum.kirupa.com/u/brau)\
**Post date:** [October 18, 2004, 2:48am UTC](https://forum.kirupa.com/t/css-xhtml-centering/67606/1 "2004-10-18T02:48:20Z")

</div>

I’m building a site in XHTML and CSS for a friend. I’m using embedded tables for the layout and it’s working fine.

I need to know if there’s a way to center the entire page in the browser window (like this forum is) without using the align=“center” (which this forum uses), which would invalidate it since I’m using the XHTML Strict DTD.

I don’t think it can be done with CSS positioning, but my understanding of positioning is not very in-depth, since tables with defined widths for cells do it for you. Eventually, I need to really get down to it and read through my CSS and XHTML books again.

Suggestions? Thanks in advance.
