Skip to main content
Main Content

How to align boxes side to side?

How to align boxes side to side?
Posted 2023-01-01 17:05:01
I want the boxes to be side by side, but this is how it comes out. Ty in advance for any help.



Text


Text



My code: < div class="boxcontainer" style="border:1px solid black; width:90%; height: 90%; margin: 15px;">
< div class="box" style="border:1px solid black; width:250px; height: 250px; margin: 15px;">
Text
< /div>
< div class="box" style="border:1px solid black; width:250px; height: 250px; margin: 15px;">
Text
< /div>
< /div>

divided by zero
#25594

Posted 2023-01-03 19:47:38
Your inner boxes are too wide, so the first one is pushing the second one down. You just need to either:

A. Increase the boxcontainer width (where it says 90%).
B. Decrease the width of the boxes (where it says 250px).
C. Do both A and B.

fireflii
#757

Search Topic