开发者

I have a standard table with text inside. How do I vertical align this?

开发者 https://www.devze.com 2022-12-25 00:14 出处:网络
Right now, the text seems not to be exactly vertical centered. It seems that there is more top-padding than bottom-padding.

Right now, the text seems not to be exactly vertical centered. It seems that there is more top-padding than bottom-padding.

Although of course, there is no padding in the CSS. How do I make this completely vertical ali开发者_运维技巧gned?



<td valign = "middle">

In CSS:

vertical-align: middle;


Try adding:

<table cellpadding="0">
0

精彩评论

暂无评论...
验证码 换一张
取 消