Why is the second list item li.header__search is the top margin?

Hello. Why is the second list item li.header__search is the top margin?
codepen.io/ddimonn8080/pen/ezObyR?editors=1100
July 9th 19 at 11:04
2 answers
July 9th 19 at 11:06
Solution
Add to .header__selectLang vertical-align: top;
Thank you. Helped. Tell me what is the reason? - Cornell_Ebert commented on July 9th 19 at 11:09
Initially inline-block elements, standard costs vertical-align: baseline. Accordingly it aligns the blocks, for this baseline. But we change on top. For clarity, I found a picture online: www.umade.ru/resources/specifications/CSS2/cell-al... - mallie79 commented on July 9th 19 at 11:12
: i.stack.imgur.com/y9u6L.gif - mallie79 commented on July 9th 19 at 11:15
Thank you. - Cornell_Ebert commented on July 9th 19 at 11:18
July 9th 19 at 11:08
No

Find more questions by tags HTMLCSS