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;
}
精彩评论