I want a div to be always at the right of its parent div, so I use float:right
. It works.
But I also want it to not affect other content when inserted, so I use position:absolute
.
Now float:right
doesn't work, my div is always at the left of its parent div. How can I move it to the right?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…