I have a positioned div whose content can be too long so scrollbars appear (overflow:auto
set). It functions as a dialog box in an ajax app. I want to fix a clo
Position:fixed
gives an absolute position regarding the BROWSER window. so of course it goes there.
While EDIT: thanks to @Sotiris, who has a point, solution can be achieved using a position:fixed and a margin-left. Like this: http://jsfiddle.net/NeK4k/position:absolute
refers to the parent element, so if you place your div>
of the container, it should position where you meant it to be.
Something like