This is a discussion on "Double Backgrounds?" within the Web Page Design section. This forum, and the thread "Double Backgrounds? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Double Backgrounds?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Double Backgrounds?
Here's a rough aproximation of what I want:
http://img.villagephotos.com/p/2003-...219/divex1.jpg http://img.villagephotos.com/p/2003-...219/divex2.jpg Notice that when the screen is resized, the white space in the middle grows smaller. One image is aligned to the top, and the other is aligned to the bottom. I want to get this effect through a CSS background. Here, I'll just say what I mean in this way: below is what one might imagine the code to look like (if this code actually worked).
|
|
|
|
|||
|
Re: Double Backgrounds?
use a div with a background for the top and place the bottom bg on the body tag.
|
|
|||
|
Re: Double Backgrounds?
I think the most flexible solution is to have three divs, one each for the top and bottom with their height fixed and their image as a background. Have your third div as the middle section which takes up whatever space is available.
Set the z-index for these three divs to 0 (zero); Make sure any other layout divs have a z-index greater than this so that they always site on top. |
|
||||
|
Re: Double Backgrounds?
Am I missing something? Why don't you just do 3 div's with different backgrounds? You really shouldn't need a "clear" command although you might have to enforce the width with a hack (like a .gif 1px high across a div) in one or more browsers. You shouldn't even need a wrap division for this.
Last edited by masonbarge; May 26th, 2006 at 13:08. |
![]() |
| Tags |
| double, backgrounds |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| implementing a Double Slider | pesho318i | JavaScript Forum | 5 | Nov 20th, 2007 12:47 |
| double click | ahwell | Flash & Multimedia Forum | 3 | Sep 7th, 2007 20:40 |
| Double Down | colinmcgray | Free Web Site Critique | 8 | Jun 14th, 2007 11:40 |
| IE 7 problem - double padding? | edd_jedi | Web Page Design | 2 | Nov 21st, 2006 15:31 |