| 1:50 am on Jan 17, 2003 (gmt 0)|
background-attachment: fixed is not widely supported as you've described. The symptoms in each different browser makes the design incompatible.
now presuming that you want this graphic to appear in each browser showing at the bottom (with a nice overlap as observed in IE6) then I would not use attachment:fixed; but instead I would position the div relatively (or not position at all!) but give it a negative top margin which would give the "overlap" and should appear relative(default) to the content in which ever browser...
<edit> attachment (not position)</edit>
[edited by: SuzyUK at 2:29 am (utc) on Jan. 17, 2003]
| 2:17 am on Jan 17, 2003 (gmt 0)|
I think I get what you mean. Will give it a go. Bet one the browsers won't like it! :)
| 2:48 am on Jan 17, 2003 (gmt 0)|
Harry that's a given..
Worst case is that you put the graphic in a "footer" so it will always be at the bottom you just won't have that pleasant overlap that IE6 shows...
but look on the bright side it'll look like you want it to in a few years time!
<added> that's when we're all older and wiser of course ;)</added>
| 3:07 am on Jan 17, 2003 (gmt 0)|
I just had a brainwave and removed the line "background-attachment:fixed;"
It now works perfectly in IE6 and NN6 with overlap.
In Opera the image is at the bottom of the div, although there's no overlap, and it puts in acres of extra space between the links and the image. But I can probably get around that.
I think my problem arose because this is the first background image I had tried, and I didn't properly understand what some of the terms meant.
Still, you live and learn! Hopefully! :)
| 3:19 am on Jan 17, 2003 (gmt 0)|
Harry that's great, glad it works..
always living and learning is my motto!
try adding padding: 0; margin: 0; too if possible (again IE box model might restrict? if you're using the div properties for something else) but otherwise it should hopefully make Opera play ball...
| 3:42 am on Jan 17, 2003 (gmt 0)|
The problem with rules like
fixed is that each browser interprets it differently.
Most browsers understand it as
IE is probably the most inconsistent in its interpretation. Opera the most correct, then Mozilla/Gecko ..
If it works in OP/MZ, it usually works the way it should in IE too :)
| 10:18 am on Jan 17, 2003 (gmt 0)|
|If it works in OP/MZ, it usually works the way it should in IE too :) |
IE renders position:fixed terribly, at least in 5.5, so while I don't know about v6 this seems a bold statement, especially given you just said IE was inconsistent :)
Moz does it lovely.
I must seem like such a theatric Moz fan.
| 2:52 pm on Jan 17, 2003 (gmt 0)|
HarryM, yer post should've been called:
'CSS, div background incorrect in IE 6'
Netscape is displaying the 'background:fixed' property correctly, ie the background is fixed relative to the browser window NOT it's containing div, which doesn't make sense to me but thats the way it works.
| 7:47 pm on Jan 17, 2003 (gmt 0)|
|Netscape is displaying the 'background:fixed' property correctly |
Sorry, but as an IE6 fan I have to disagree with that! :)
The property was applied to a div. If NN considered it incorrect it should have ignored it, not applied it to the body.
Anyhow it works now. Thanks everybody for your help.