r/github • u/ChecklistAnimations • Sep 15 '26
Question GFM Details tags have too much padding
Hi Everyone,
EDIT: This is solved please see comment.
New here. I am using GitHub to write my documentation for a framework. I have several HTML details blocks. I love these, as they allow us to have things folded down where they may not be needed right away. But the vertical padding. Holy flip (see image). Is this just how it is or is there anything anyone has done to figure out how to limit the amount of vertical padding so it's all compacted a bit more. I had at one point set the margin to 0 and that worked for like 10 minutes then it reverted back.
Also not trying to make this a coding help request. I can code a ul, table, div, styles whatever it takes but none of those worked. I am wondering if anyone understands the platform really well to where the details blocks could have less vertical padding.
Thanks so much.




