I want a component that keeps horizontal center of the page (two-columns), and I have a sub-component (right column) that I want its position to be fixed, so the sub-compone
You can use margin: 0 auto with position: fixed if you set left and right.
margin: 0 auto
position: fixed
left
right
.wrapper { position:fixed; top: 0; left: 0; right: 0; width: 500px; margin: 0 auto; }
This also works with position: absolute; and vertically.
position: absolute;
Demo: http://codepen.io/pstenstrm/pen/myaWVJ