Align text vertical center in DIV with CSS
CSS: #container { display: table; } #inner { display: table-cell; vertical-align: middle; line-height: normal; } HTML: <div id=container><div id=inner>The TEXT here!</div>
CSS: #container { display: table; } #inner { display: table-cell; vertical-align: middle; line-height: normal; } HTML: <div id=container><div id=inner>The TEXT here!</div>
More
H | B | T | N | S | B | C |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
Bình luận gần đây