Quantcast
A Graphics.com site
Leigh's picture
72 pencils

where to find css support

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

Thanks.

Leigh's picture
72 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
277 pencils

try using the body tag to center your site:

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

Leigh's picture
72 pencils

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

thanks.

Latest critique

  • Macsolutions Business Card
  • Illustration

On Demand Videos

Photoshop: From Ho-hum to Wow!
You can use Photoshop to bring out the magic of photos that are muddy, soft, or blandly composed.
watch a preview

On Demand Videos: Video tutorials for advertising pros and designers providing tools and information you can trust — and use — on your very next project. Subscribe today!

Creativebits recommends

stocklogos.com logoawards.mediabistro.com

Marketplace