Can I somehow use CSS to place the block2 in top right corner of block1?
block2
block1
.block1 { color: red; width: 100px; border: 1px solid green; position: relative; } .block2 { color: blue; width: 70px; border: 2px solid black; position: absolute; top: 0px; right: 0px; }
text text2 block2
text
text2
Should do it. Assuming you don't need it to flow.