treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Help Needed!! CSS background manipulation issues

  • Hello everyone,

    I am fairly new to wed design and i need some help with working with my bg(background) image. I have used an image(2color plain image) as the bg of my homepage and need to use the same bg for my secondary pages. Because the secondary pages vary in length, I divided the bg into 3 (Head, body and footer) to use as individual backgrounds for the body, footer and header to cater for the changes in the length of the page.......

    The real problem is that I have the whole page centered using a div wrapper with a width % value. How do I get the bg of the footer, header and body to span beyond the wrapper, covering the whole width of the page? and yet maintain the center position?

    I hope I explained this well......Thanks in advance...

    Sam.
  • You could try in the css this

    background-image:url('gradient2.png');
    background-repeat:repeat-x;
  • Thanks....very useful link and code.