开发者

two rows using label tag

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜