css and vertical alignment of text


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
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?
by | 10 views

4 Answers

0 like 0 dislike
Yes, you need to change display property here phrogz.net/css/vertical-align/index.html well explained how it works.
by
0 like 0 dislike
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.
by
0 like 0 dislike
Yes, you need to make li{display:inline-block} (Google how to make cross-browser), then vertical-align:middle will work.
by
0 like 0 dislike
habrahabr.ru/blogs/css/71236/ as one of the methods.
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
36,682 users