[resolved] Background Image Center (Please Help) (3 posts)

  1. nathanj
    Posted 2 years ago #

    Im working on a friend's dev theme he didnt have time to complete and I'm down to one final issue. Im needing the background image to be aligned top and center. Right now it aligns top (correctly) and repeats correctly but is aligned to the left instead of center. Ive tried all the resolutions I could find but am stumped. Any help would be greatly appreciated.

    This is the code containing the bg image from my style.css

    * { margin:0; padding:0; }
    html, body { height: 100%; }
    body { background:#000000 url('images/bg.jpg') repeat; font-family:  Helvetica,Arial, sans-serif; font-size: 14px; margin:0px; color:#6f6f6f; }
    h1 { font-size: 18pt; font-family: Code-Pro-Demo; }
    h2 { font-size: 14pt; font-family: Code-Pro-Demo; }
    h3 { font-size: 10pt; font-family: Code-Pro-Demo; letter-spacing: 1px; }
    h4 { font-size: 9pt; font-family: Code-Pro-Demo; }
  2. David Beja
    Posted 2 years ago #

    Did you try:
    background:#000000 url('images/bg.jpg') repeat center top;

    If this is not what you want, do you have a link to understand better the problem?

  3. nathanj
    Posted 2 years ago #

    That worked perfectly thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.