Quantcast

Creativebits.org

an All Creative World site
Leigh's picture
78 pencils

where to find css support

Does anyone know of a board to post CSS questions? I'm so stuck...

Thanks.

Commenting on this Forum topic is closed.

Leigh's picture
78 pencils

The specific problem is that I can't get my background image to center. It's a large image that is meant to center regardless of the window size, but instead it always remains top left aligned (with the 25px padding):

#container {
width: 954px;
height: 604px;
padding: 25px;
background-position: center center;
background-repeat: no-repeat;
background-image: url(../images/background.jpg);
}

It know it must be some stupid mistake that I keep missing,. This is my first site using CSS if that's any excuse. :)

Thanks.

olliesan1's picture
288 pencils

try using the body tag to center your site:

body {
margin: 8px auto;
text-align:center;
}

Leigh's picture
78 pencils

i moved the entire definition to the body section instead of the container and it worked.

thanks.

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

  • Butterfingers ad campaign
  • Critique for my logo

Marketplace