开发者

two rows using label tag

开发者 https://www.devze.com 2023-03-03 04:29 出处:网络
I am just trying to show data in a two column field and want to avoid using table tags. However, the data comes out like this: http://jsbin.com/ewixe5/

I am just trying to show data in a two column field and want to avoid using table tags.

However, the data comes out like this: http://jsbin.com/ewixe5/

how can I change it so they are displayed 开发者_如何学编程properly?


Make .show_label an inline-block.

Example: http://jsfiddle.net/k6skr/


You can use something like an unordered list (ul), like this:

<ul>
 <li>a</li>
 <li>b</li>
</ul>

and declare the style like:

ul li {
 display: inline-block;
 width: 200px;
}
0

精彩评论

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