On Jun 12, 2008, at 1:21 AM, Matt Tibbits wrote:
> Yes, it should. In FF though, if the content doesn't go all the way
> to the
> bottom of the window, it interprets bottom right as being the bottom
> right
> of the content INSTEAD of the bottom right of the browser window...
>>
>> body {background: #ccc url(../path/to/image.png) no-repeat 100% 100%
>> fixed;}
>> out to do just that.
A fixed positioned image is always placed in reference to the
*viewport* (that is: the window). The code given works perfectly fine
in Gecko 1.8 and Gecko 1.9 (Fx 2 and Fx3 rc), Opera, WebKit (Safari) -
and IE 6, IE 7 [1].
The code above would fail, however, if you also put a background on
the root element (<html>).
If what you actually want is:put the image at the bottom of the window
if there is not much content, but at the bottom of the content if it
overflows the window (long page), then Georg's solution of using min-
height is the way to go.
[1] little demos
<http://dev.l-c-n.com/_temp/bg-fixed1.html>
<http://dev.l-c-n.com/_temp/bg-fixed2.html>
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/