I am looking to position two divs in a specific way on the page: one at the top left corner (black) and the other on the right side (red). https://i.sstatic.net/tKpGo.png
I have considered 5 different approaches, which I've listed below. While they are valid options, I believe there may be a simpler and more effective method to achieve this layout. Can you please help me find a better way to do it?
(a) Applying CSS like
position:absolute; margin-left:30px; (or left)
to the right div.
(b) Using a table with 2 columns, positioning the left div in the first column and the right div in the second column.
(c) Adding float:left
to the left div and something like 'float:left; margin-left:30px; margin-top:-30px;' to the right div.
(d) Making both inline blocks and positioning them accordingly.
(e) Utilizing CSS Flexbox for layout purposes.