[html/css] Fixed position vertically/ absolute horizontally

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
Nugget
New Member
Posts: 5
Joined: Fri 18 Jan, 2008 9:10 pm

[html/css] Fixed position vertically/ absolute horizontally

Post 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.
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

nested tags?
You know your hexadecimal output routine is broken when it displays the character 'G'.
Post Reply