# Could a CSS expert please tell me what is wrong with this?

**URL:** <https://forum.kirupa.com/t/could-a-css-expert-please-tell-me-what-is-wrong-with-this/236569>\
**Category:** web dev\
**Created:** [August 21, 2007, 10:41pm UTC](https://forum.kirupa.com/t/could-a-css-expert-please-tell-me-what-is-wrong-with-this/236569 "2007-08-21T22:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilymc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lilymc/32/3676_2.png) [@lilymc](https://forum.kirupa.com/u/lilymc)\
**Post date:** [August 21, 2007, 10:41pm UTC](https://forum.kirupa.com/t/could-a-css-expert-please-tell-me-what-is-wrong-with-this/236569/1 "2007-08-21T22:41:29Z")

</div>

Once again, please forgive this n00bish question, but I’ve tried lots of different things and I’m still having the problem.

The 2 background images in the main section are not quite centered. Neither is the Flash header, but I was able to center that by adding padding to the left.

I can’t do that with the background images though, because then in IE6, it goes too far to the right.

I would think there would be a simple ‘center’ code with CSS, but apparently whoever invented CSS figured that would be too easy. 😑 I’ve used margin: auto, on just about everything, but it’s still not centered.

Here is the code:

```auto
body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #333333;
    margin: auto;
    }

body {
    margin: 0 auto;
    background-image:url(../images/white-turquoisebg.jpg);
    background-repeat: repeat-x;
    background-color: #1C6C8E;
}
    
    
a {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #EEBE2D;
}
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #F1CB56;
}
a:hover {
    text-decoration: underline;
    color: #EEBE2D;
}
a:active {
    text-decoration: none;
    color: #EEBE2D;
}

#wrapper {
    width: 915px;
    height: 870px;
    margin: 0 auto;
    margin-top: 25px;
    background-image:url(../images/mainbg-white8.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    }

#flashcontent {
    width: 100%;
    height: 222px;
    padding: 0;
    margin: 0 auto;
    padding-top: 10px;
    padding-left: 10px;
}

#main1 {
    width: 870px;
    height: 430px;
    margin-top: 0px;
    margin: auto;
    background-image: url(../images/ltblue-main1bg.jpg);
    background-repeat: no-repeat;
    padding-bottom: 5px;
    background-position: center center;    
}

#main2 {
    width: 870px;
    height: 180px;
    margin-top: 10px;
    margin-bottom: 0px;
    margin: auto;
    background-image:url(../images/tealmain2bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
}

```

If you notice any other mistakes in the code, please let me know.

Here is the link to what I have so far on the page: **[{ click }](http://www.starryskymedia.com/waves_fundraising/index2.html)**

Thanks!
