1

I've spent hours now trying different things to figure out how to get 2 background images in css to expand the full width of the page.

The site is here: http://res-intel.com

I know that having a width defined in #main won't let it expand. However I can't think of a solution. I would think the body one should work!!! What can I do?

Thank you so much!

The relevant CSS code is:

body {
background-image:url('http://res-intel.com/images/headerbg.jpg') repeat-x top right;
margin:auto;
padding:0;
text-align: center;
font-family:arial;
}

#main {
background: url('http://res-intel.com/images/contentbg.jpg');
background-repeat:repeat-x;
width:904px; 
text-align:left;
}

1 Answers1

0

You have syntax error. You can't add repeat-x and position properties for background-image. You need to use like background instead of background-image. Update your CSS like below.

 body {
  background:url('http://res-intel.com/images/headerbg.jpg') repeat-x top right;
  margin:auto;
  padding:0;
  text-align: center;
  font-family:arial;
 }
Suresh Ponnukalai
  • 13,820
  • 5
  • 34
  • 54