# CSS Style Align

**URL:** <https://forum.kirupa.com/t/css-style-align/67186>\
**Category:** web dev\
**Created:** [October 13, 2004, 11:11am UTC](https://forum.kirupa.com/t/css-style-align/67186 "2004-10-13T11:11:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [October 13, 2004, 11:11am UTC](https://forum.kirupa.com/t/css-style-align/67186/1 "2004-10-13T11:11:15Z")

</div>

I have the following CSS style to control the layout of a html page:

```auto
body {
	background-color: white;
	background: url(images/bg.jpg) top center; background-repeat:repeat-y;
   [color=red] margin-top: 0pt;
[/color]	
	scrollbar-face-color: #ffffff;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #999999;
	scrollbar-3dlight-color: #FFFFFF;
	scrollbar-arrow-color: #999999;
	scrollbar-track-color: #ffffff;
	scrollbar-darkshadow-color: #666666;
}

```

In the HTML page I have one main table for all the other content. I want the table to align in the centre with a margin of 0pt on top. The margin of 0pt is working because of the margin-top code in my CSS style, but I don’t know how to align the table horizontal in the centre within this body Style.

I want the alignment insite the body code, just like the background-image part.

How do I do that?

Thanks in advance
