Web | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Web

I want left and right to be side by side, where is the mistake? Help me please🙏🏻 https://code.sololearn.com/WvZo5FBE5fTD/?ref=app

8th Jun 2021, 8:43 PM
Mohamad Nourigohar
Mohamad Nourigohar - avatar
3 Answers
+ 2
Div is a block element , i.e. it takes up all the space available horizontally and starts at a new line . you should look into "display:grid" property. Check your code that i wrote using it , https://code.sololearn.com/W85p9oXgTHZQ/?ref=app i don't know what box-sizing model it is using but to me looks like it is border-box . Between it's my first time using grid area property and it does the work , so thought of using it .You should definitely look into other ways to achieve it if possible(using grid or other methods)
8th Jun 2021, 11:12 PM
Abhay
Abhay - avatar
+ 1
Thank you for your atention🌷
9th Jun 2021, 3:40 AM
Mohamad Nourigohar
Mohamad Nourigohar - avatar
0
Look at my code , i used float and reolved the mistake
11th Jun 2021, 11:20 AM
Mohamad Nourigohar
Mohamad Nourigohar - avatar