html container 2colums align | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

html container 2colums align

html css used container row, column 2 comolumns i am used but how do align 2 colums width,height alignment coding commend

23rd Oct 2019, 10:56 AM
Vicky vj
Vicky vj - avatar
2 Answers
0
I don't understand very well, if you can pass me the code it would be perfect and say me what you want
23rd Oct 2019, 2:59 PM
Yilver Quevedo
Yilver Quevedo - avatar
0
You can use the flex box properties <!DOCTYPE html> <html> <head> <style> .flex-container { display: -webkit-flex; display: flex; width: 400px; height: 250px; background-color: lightgrey; } .flex-item { background-color: cornflowerblue; width: 100px; height: 100px; margin: 10px; } </style> </head> <body> <div class="flex-container"> <div class="flex-item">flex item 1</div> <div class="flex-item">flex item 2</div> <div class="flex-item">flex item 3</div> </div> </body>
23rd Oct 2019, 3:22 PM
Oduola Rasheed Olaide
Oduola Rasheed Olaide - avatar