开发者

set position in a table

How to set position inside a table? I have table inside which I have span and certain links. I made <td> as center alignment and span texts starting from center, but when I do the sam开发者_如何学编程e for all links <td> everything is displayed in center if it own. But I need to start all text at the same position. How to do this?


What i understand is that you want to align the text. Try this way, also try to be more exact and send us a copy of your code. But from what i understood try out this.

    div style="text-align: center;">
<table style="margin: 0px auto;" border="0">
    <tbody>
        <tr>
            <td>Cell 1</td>
            <td>Cell 2</td>
        </tr>
        <tr>
            <td>Cell 3</td>
            <td>Cell 4</td>
        </tr>
    </tbody>
</table>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜