# Centered Body Background Img: Not Central!

**URL:** <https://forum.kirupa.com/t/centered-body-background-img-not-central/176126>\
**Category:** web dev\
**Created:** [January 20, 2006, 3:21pm UTC](https://forum.kirupa.com/t/centered-body-background-img-not-central/176126 "2006-01-20T15:21:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DESIGN\_GEEZER](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DESIGN\_GEEZER](https://forum.kirupa.com/u/DESIGN_GEEZER)\
**Post date:** [January 20, 2006, 3:21pm UTC](https://forum.kirupa.com/t/centered-body-background-img-not-central/176126/1 "2006-01-20T15:21:52Z")

</div>

Another IE piece of fun!

```auto

/* -- css code -- */
 
html, body {
 width: 100%; height: 100%; margin: 0px; padding: 0px; 
}
body {
 background: #ededed url(../img/bkg_container.gif) repeat-y center top; font: 77%/180% Arial, Helvetica, sans-serif; color: #333; text-align: left
}

```

You’d this that the background container gif would display exactly in the horizontal centre of the screen. In Firefox it does. In IE its out 1px to the right and as such doesn’t look right with the rest of my site design. Aaarrgh!

Any good solutions out there people?
