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


Do I somehow block2 in in the top right corner Can I use CSS to keep block1 ?


Reference:

  • should be Block 2 (too) code within the last HTML code block 1 Or it can be placed after block1 . I can not make it the first element in block1 .
  • Block 1 inside and

    may be, images, text and it is beyond my control to know How many and how many are there.

  • I also need the block2 flow.

code:

  .block1 {color: red; Width: 100px; Border: 1 px solid green; } .blok2 {color: blue; Width: 70px; Border: 2px solid black; Status: Relative; }  
  & lt; Div class = 'block1' & gt; & Lt; P & gt; Text & lt; / P & gt; & Lt; P & gt; Text 2 & lt; / P & gt; & Lt; Div square = 'block 2' & gt; Block 2 & lt; / Div & gt; & Lt; / Div & gt;  

  .block1 {Color: red; Width: 100px; Border: 1 px solid green; Status: Relative; } .blok2 {color: blue; Width: 70px; Border: 2px solid black; Status: Completed; Top: 0 pixels; Correct: 0 pixels; }  

Should do this. Let's say you do not need to flow.


Comments