Board Thread:Support Requests - Getting Technical/@comment-45310000-20200413025233/@comment-9605025-20200414065125

So...

It doesn't matter what element you wrap the ToC in. The parent element cannot override styles applied directly to its descendants. Especially if the properties you are trying to set are not inherited; which is the case for borders. The only way to change the style of the ToC border would be site CSS. As you already know, that is currently not an option.

That said, the spacing might be inherited. If it is, then you could change the spacing by setting the spacing of the enclosing div tag. I am not entirely sure which CSS property you would want to set but it is likely line-height.