332 posts
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
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 referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
LuanMuniz says

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

332 posts
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
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/

1476 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
OriginalEXE says
332 posts
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
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