开发者

Getting an Variable to Display at the top of an HTML Table Row

开发者 https://www.devze.com 2022-12-26 08:03 出处:网络
For the HTML table column below, the $count++ displays in the middle of the row.How can I get it to display at the top of the row?

For the HTML table column below, the $count++ displays in the middle of the row. How can I get it to display at the top of the row?

Thanks in advance,

John

Code:

echo '<td class="commentnamecount">'.$count++.'.</td>';

CSS:

.commentnamecount { width: 20px;
            overflow:hidden !important;
            color开发者_如何学Python: #000000;
            vertical-align: 

}


display:table-cell;   
vertical-align:top;

or

<td valign="top" class="commentnamecount">

See: http://www.w3.org/TR/CSS2/tables.html

0

精彩评论

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