Display: inline-block not working

I was trying the blocks to become inline with each other so i used the display: inline-block but it isn’t working. Why is that?
Maybe I haven’t used it properly idk what is the issue so please do help.
(totally unrelated,i was trying out some functions.)

Can you share your code so that someone can help you?

Hello @shrutea,
just give the display:inline-block; property to your 2 box-models, giving them a width and an height.
And then remove it from the div element and set the width greather than 40%.

2 Likes

Thankyou so much,that worked just fine!

1 Like