320 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

Hey guys,

I need some help to style a table. The problem is that I cant add a margin between the table columns. The only way I found that allows me to do it, is by setting the “td” element with display: inline-block;. But if add this css property the table doesn’t work like as it should be working.

This is what I want to achieve:

And here is the code example: http://jsfiddle.net/NtVPZ/

Anyone know how to do it?

Thanks

16 posts
  • Has been a member for 3-4 years
  • Brazil
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
LuanMuniz says

Just add borders in TD’s like http://jsfiddle.net/NtVPZ/3/

320 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

This doesn’t work for me because if I set the color of the border to transparent it continues white and I cant set a solid color for the border.

http://jsfiddle.net/NtVPZ/4/

1402 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says
320 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

As I’ve said on the first post using display: block; is causing another issues.

http://jsfiddle.net/NtVPZ/7/
by
by
by
by
by
by