开发者

Adding Some "Spacers" to a Table

Here's my fiddle:

http://jsfiddle.net/6yU6N/

Here's a mockup of what I want to accomplish:

Adding Some "Spacers" to a Table

As you can see, I want to add a tiny space between the header and the 开发者_开发知识库first "pick container." And to add a space between each pick container.

What's the best what to do this?


you can use this where you need some space:

....
<tr class="big_gap">
  <td colspan="4"></td>
</tr>
...
<tr class="small_gap">
  <td colspan="4"></td>
</tr>
....

<style>
  .big_gap td {
    height: 19px;
  }

  .small_gap td {
    height: 10px;
  }

</style>

This way you can give the specific appearance to the gap in between. And if it doesnt behave well you can add a   in the <td colpan="4">&nbsp;</td>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜