Two background images on one page

Thread Solved

Join Date: Oct 2007
Posts: 260
Reputation: Venom Rush is an unknown quantity at this point 
Solved Threads: 2
Venom Rush's Avatar
Venom Rush Venom Rush is offline Offline
Posting Whiz in Training

Two background images on one page

 
0
  #1
Sep 2nd, 2008
Hi everyone

Just curious to know if anyone has a technique to accomplish this. I've tried having one image as the background on the html tag and one on the body tag. Problem is that I'd like to have them static and the minute I do that the html tag's bg colour cuts the body tag's bg image out at the bottom after scrolling below the initial view of the page.

  1. body {
  2. margin-top:0px;
  3. height:100%;
  4. background:url(../images/bg_center.gif);
  5. background-repeat:no-repeat;
  6. background-position:left bottom;
  7. background-attachment:fixed;
  8. }
  9. html {
  10. margin-top:0px;
  11. height:100%;
  12. background:url(../images/bg_right_rome.jpg);
  13. background-repeat:no-repeat;
  14. background-position:right top;
  15. background-attachment:fixed;
  16. background-color:#E5D2A6;
  17. }

I'm trying to get an image on either side of the table. I know I could have accomplished this simply by having a 3 column table but I've designed the site so that the full 774 pixel area is used for content and I'd like to allow users with 800x600 resolution to view the site without having a sidewards scroll bar at the bottom of their page. Simply put, if they are running 800x600 they wont see the side bg images. If they're running a higher resolution then they will.
This user has a spatula. We don't know why, but we are afraid.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 30
Reputation: Mylena is an unknown quantity at this point 
Solved Threads: 1
Mylena Mylena is offline Offline
Light Poster

Re: Two background images on one page

 
0
  #2
Sep 5th, 2008
Hi,

I'm not sure if I understood you correctly, but have you tried playing with z-index?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 260
Reputation: Venom Rush is an unknown quantity at this point 
Solved Threads: 2
Venom Rush's Avatar
Venom Rush Venom Rush is offline Offline
Posting Whiz in Training

Re: Two background images on one page

 
0
  #3
Sep 8th, 2008
I've ended up using a div on either side of the content table with background images inside them.
This user has a spatula. We don't know why, but we are afraid.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 55
Reputation: MelechM is an unknown quantity at this point 
Solved Threads: 6
MelechM MelechM is offline Offline
Junior Poster in Training

Re: Two background images on one page

 
0
  #4
Sep 9th, 2008
for background-color: (color); make it background-color: transparent; that should work. If not send us ur whole code to help
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC