![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, Is it possible to make a div part of the "background"? In other words, I want it to always render if that part of the screen is showing, but not create scrollbars under any circumstances. Furthermore, I want it to obey the same positioning rules as a normal div. And (like a background image) I don't want the presence of this div to shift other elements over. |
#3
| |||
| |||
|
|
Yes it is possible with some trickery. Here is an example: http://www.tidraso.co.uk/misc/backgroundDiv.html |
#4
| |||
| |||
|
|
On Oct 15, 5:56*pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Yes it is possible with some trickery. Here is an example: http://www.tidraso.co.uk/misc/backgroundDiv.html This is a great start! One issue, though: the box stays fixed to the page when you scroll (at least, on FF3/win). This seems odd, even for an absolutely-positioned div (as opposed to a fixed-position one.) |
|
Any way to change this and make it scroll when the page scrolls? |
#5
| |||
| |||
|
|
Of course: http://www.tidraso.co.uk/misc/backgroundDiv2.html |
#6
| |||
| |||
|
|
On Oct 16, 9:32*am, Ben C <spams... (AT) spam (DOT) eggs> wrote: Of course: http://www.tidraso.co.uk/misc/backgroundDiv2.html |
#7
| |||
| |||
|
|
On Oct 16, 9:32*am, Ben C <spams... (AT) spam (DOT) eggs> wrote: Of course: http://www.tidraso.co.uk/misc/backgroundDiv2.html Hrm. This doesn't work in IE6 (surprise) and renders two scrollbars in IE7 (that's a new one on me.) Works fine in Firefox 3, Opera 9, Chrome, Safari 2. |
|
I might just have to bite the bullet and load a separate stylesheet for IE users. Sad. |
#8
| |||
| |||
|
|
Well it's time they woke up and smelt the coffee. |
![]() |
| Thread Tools | |
| Display Modes | |
| |