Error Not able to find why this is Happening?

here i have make 4 box using div
but they are arranging up and down why??
why they are not at same leve??

when i make text of each box same then they come up in same line
why this is happening?

link of html and css file


@anandprakash1091971 the problem is there because of the inline-block, that’s just how it works. As you can see in the text inside the divs, there are some line breaks (space characters) present, and inline-block shifts the div positioning regarding those spaces. For them to appear, at same height, you can do 2 things

  1. Either you float instead of display: inline-block
  2. Or put vertical-align: top in your box class
    This should solve your problem

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.