Question:
Here’s what I’m trying to achieve.And here’s the result I get.
Here’s the relevant html
Thank you for any help.
Answer:
In HTML, by default, everything goes from top to bottom. So ins2-r1
, even though you have 2 children elements and they would fit side-by-side, they will go from top to bottom.There are many ways to make them go from side to side, but the best approach heres is to add
display: flex
to the s2-r1
class. By the way, you wrote .section2-right img
for the image selector where it should be .s2-r1 img
.If you have better answer, please add a comment about this, thank you!