How to right align fixed position div inside a div

后端 未结 7 2115
庸人自扰
庸人自扰 2021-02-19 19:03

My code is like this.

some text here

CSS:



        
7条回答
  •  醉话见心
    2021-02-19 19:09

    If in case, you want to make the .inner element as a fixed positioned element and leave the other things inside .outer to be "scrollable", I suggest you to set the .inner position as an absolute positioned element. Then, create a new wrapper after it with overflow:auto:

    Some text here...
    content

    Here's a demo: http://jsfiddle.net/tovic/ZLbqn/3/

提交回复
热议问题