Grow your CSS skills. Land your dream job.

Background Image moves with resizing of window

  • # June 14, 2010 at 4:30 pm

    Hey guys,

    Still a work in progress here but can anyone tell me what to add to the CSS to make the bg image not move and stay centered with the big sideshow when the browser window is re-sized?

    http://nickswenson.com/

    Thanks,
    Nick

    # June 14, 2010 at 4:47 pm

    position:absolute

    # June 14, 2010 at 5:36 pm
    "moodesign" wrote:
    position:absolute

    I tried this but when I append that to the CSS it makes it disappear? I suppose I would also need to make either another stylesheet or different hook on the other pages so this wasn’t the background of them as well?

    Thanks,
    Nick

    # June 14, 2010 at 5:59 pm

    yeah, external sheet multiple pages. but did you enter specific position? as in-

    top: -6px left: -6px

    # June 14, 2010 at 6:09 pm
    "moodesign" wrote:
    yeah, external sheet multiple pages. but did you enter specific position? as in-

    top: -6px left: -6px

    Nope I didn’t…sry I’ll give that a try. Still new to this stuff. Thanks for your help!! :)

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".