Making div fixed vertically but glued to the page's border horizontally

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-05-28T15:38:19Z Indexed on 2010/05/28 15:41 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

Hi! Can you please go to: http://www.binarymark.com/Products/ColorPickerPro/default.aspx and note the page's layout.

What I want to do is to stick or "glue" some small div to the right side of the page, that is so that it's just outside of the right frame of the page.

However, vertically I want the div to be fixed to a Window, that is no matter how much the page is scrolled, it should remain a fixed 300px from the top edge of the window.

Here's what it should look like http://www.binarymark.com/layexp.png

Can you help me please?

Seems easy, but I have no idea how to combine vertical fixed positioning and horizontal relative/absolute positioning and making sure it supports all major browsers.

Thanks.

© Stack Overflow or respective owner

Related posts about css

Related posts about div