How to reduce margin between header and dataview lists & tables

Hmm. Not sure. Here’s from a vault with only Minimal and Dataview installed. The Dataview query is

```dataview
list 
from "imafolder"
```

and in Reading view with the above CSS (targeting only the top of Dataview rendered lists).


Not specifically for Dataview rendered lists, but you could try changing or replacing the values in these custom properties as well. Reading view is where you’ll see most of the changes.

  • --p-spacing defines the spacing between paragraphs (defaults to 1rem).
  • --heading-spacing defines the spacing above a heading when it follows a paragraph (defaults to 2.5x paragraph spacing).
body {
    --p-spacing: 0.6rem; /* default is 1em */
    --heading-spacing: calc(var(--p-spacing) * 2.5);
}

2 Likes