css and vertical alignment of text

actually the question such — typeset menu, respectively, using ul and li. there are multiline paragraphs, lines are separated by br AMI. the problem is that the height of the point fixed, and the text let's say in 2 lines not in the center. poryskav on the Internet found just about vertical-align and line-height, from the first effect is zero, the second is not staged. how to do it properly?
October 14th 19 at 11:08
4 answers
October 14th 19 at 11:10
Yes, you need to change display property here phrogz.net/css/vertical-align/index.html well explained how it works.
October 14th 19 at 11:12
vertical-align applies to table elements, which is why the effect is zero for a list.
Can try to play with the property "display" elements.
October 14th 19 at 11:14
Yes, you need to make li{display:inline-block} (Google how to make cross-browser), then vertical-align:middle will work.
October 14th 19 at 11:16
habrahabr.ru/blogs/css/71236/ as one of the methods.

Find more questions by tags CSS