can I somehow using css place the block2 in right top corner of block1?
Note that block2 must be the (very) last inside html code of block1 or it could be placed after block1. I cannot make it the first element in block1
Note2
- that within block1 could be
<p>
, images, text and it is beyond my control to know what and how many. also I need the block2 to flow
<html> <head> <style type="text/css"> .block1 {color:red;width:100px;border:1px solid green;} .block2 {color:blue;width:70px;border:2px solid black;position:relative;} </style> </head> <body> <div class='block1'> <p>text</p> <p>text2</p> <div class='block2'>block2</DIV> </div> </body> </html>