Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- how do i position a picture at centre right part of window


lucy24 - 2:55 am on Aug 31, 2012 (gmt 0)


Absolute positioning is relative to the whole page. It moves when you scroll. You want the rarely-used fixed [w3.org] position:
The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins. In the case of {stuff they put in just to scare you} the box is fixed with respect to the viewport and does not move when scrolled.

I just tried it with a small picture on a random page. The effect is way cool if you're absolutely sure there will not be any collisions with your ordinary, non-fixed, non-absolutely-positioned content. That's the drawback to both "absolute" and "fixed": they don't care if they're stepping on some other element's toes.


Thread source:: http://www.webmasterworld.com/css/4490031.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com