Page 1 of 1

[html/css] Fixed position vertically/ absolute horizontally

Posted: Fri 01 Feb, 2008 11:35 pm
by Nugget
I don't know how many of you are CSS children, but I assume somebody does.

When you align an item with FIXED positioning, it stays on the same place in the screen, no matter where you scroll or resize the window. (relative to the browser window)

When you align an item with ABSOLUTE positioning, it is positioned at a precise location in the page (relative to the page)

Is there a way to position something FIXED in the vertical position and ABSOLUTE horizontally? I need this so I can scroll up and down and the image will stay there, but when I resize the screen horizontally it will scroll with the other items.

Posted: Sat 02 Feb, 2008 12:37 am
by Dwedit
nested tags?