how to place last div into right top corner of parent div? (css)

前端 未结 5 1052
迷失自我
迷失自我 2020-12-14 05:35

Can I somehow use CSS to place the block2 in top right corner of block1?


Context :

  • block2
5条回答
  •  爱一瞬间的悲伤
    2020-12-14 06:11

    If you can add another wrapping div "block3" you could do something like this.

     
          
          
          
    
        
        

    text1

    text2

    block2

提交回复
热议问题