开发者

HTML table td alignment

开发者 https://www.devze.com 2023-01-07 15:20 出处:网络
I have three buttons inside a td element. Now all the buttons are being aligned vertically. How can I align them horizontally withou开发者_Python百科t using nested table.Try using unordered list (UL)

I have three buttons inside a td element. Now all the buttons are being aligned vertically. How can I align them horizontally withou开发者_Python百科t using nested table.


Try using unordered list (UL) of list elements (LI) with horizontal alignment.

Here is an example: http://css.maxdesign.com.au/listamatic/horizontal01.htm


Use CSS:

float:left for every button clear: both in the end


use div with property float left

<div style="float:left">
  button1
</div>

<div style="float:left">
  button2
</div>

<div style="float:left">
  button3
</div>
0

精彩评论

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