+ 2

How to create a Two Column layout using HTML and CSS? (Solved)

I want to bring two elements in the same line, one of which will be floating on the left and the other one on the right.

20th Jul 2021, 7:34 AM
Amanat Alam
Amanat Alam - avatar
2 Respuestas
+ 4
Like this ? <head> <title>Page Title</title> <style> body { display:flex; justify-content:space-between; } div{ height:100px; width:100px; background-color:red; } </style> </head> <body> <div></div> <div></div> </body>
20th Jul 2021, 8:01 AM
Abhay
Abhay - avatar
+ 2
Flexbox is good modern and fully supported option. Its easy, a 10min videotutorial will help u understand the code provided
20th Jul 2021, 8:08 AM
arturop200
arturop200 - avatar