question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: padding between rows (or skip last bottom padding)

See original GitHub issue

First, I want to say that this is a fantastic project, which I have only started to use.

When working with (custom) tables, I found that the existing cell padding options did not fit my need: adding vertical padding at either the top or the bottom gave an unbalanced “table”, whereas adding it at both top and bottom introduced too much vertical spacing between rows. I resorted to doing a formatting hack by not using vertical padding, inserting instead an empty row between each existing rows, so as to get the vertical spacing between rows just right (for me). Here’s a screen capture to illustrate what I mean: image

This small hack works for me, but it might possibly be a nice feature to add, using bottom padding with an extra flag skip_last_bottom_padding – if it is not too difficult to implement.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
arobergecommented, May 19, 2020

Version 1.1.7 with collapse_padding-True and pad_edge=False definitely works without having to do my hack, making my code look much cleaner.

Thanks

1reaction
willmcgugancommented, May 19, 2020

Try v1.1.7

There was a bug with pad_edge, it was only affecting the left and right edges, not top and bottom. I’ve also added collapse_padding which combines padding from neighbouring cells.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove unwanted space between rows and columns ...
The border-collapse, border:none and border-spacing get rid of table/row/column line. The padding 0 calls get rid the padding from the container table. I...
Read more >
Delete padding between rows - SiteOrigin
I have tried with “.home #main” just as well. Further, I set the row styles as follows: No bottom margin “activated”, bottom margin...
Read more >
scroll-padding - CSS-Tricks
scroll -padding is used to adjust the snapping container's optimal viewing region. This is useful if the container has elements such as a...
Read more >
padding-bottom - CSS: Cascading Style Sheets | MDN
An element's padding area is the space between its content and its border. The effect of the CSS padding-bottom property on the element...
Read more >
CSS border-spacing property - W3Schools
The border-spacing property sets the distance between the borders of adjacent cells. Note: This property works only when border-collapse is separate.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found