Spacing between elements (multi-column boxes)

I’m playing around with a custom dashboard, kind of based on the Beautitab plugin, but more info visible, with Multi-Column Markdown.

A problem I’m having right now is that the vertical spaces between the elements are quite large, and like to reduce them.

In the screenshot, I mean the space between the boxes, e.g. under ReaderGuy42! and above Recent To Dos

How can I reduce it?

I’ve tried looking through the CSS Elements, and played with padding, but can’t figure out how to target that space. The Inspector doesn’t pick up that spacing and just goes to the entire page, where I then can’t find anything.

Any advice?

Thanks!

# --- start-multi-column: ID_3odq
```column-settings
Number of Columns: 3
Largest Column: standard
```
### Ideas
![[test]]

--- column-break ---

 ```dataviewjs
let hour = moment().hour();
let greeting;

if (hour < 12) {
    greeting = "Good morning";
} else if (hour < 18) {
    greeting = "Good afternoon";
} else {
    greeting = "Good evening";
}

// Use dv.el to render the HTML properly
dv.el("div", `
<div style="text-align: center;">
    <div class="huge" style="color: white;">
        <a href="obsidian://adv-uri?vault=MYVAULT&commandid=omnisearch%3Ashow-modal" style="color: white; text-decoration: none;">
            ${moment().format('HH:mm')}
        </a>
    </div>
    <div class="big" style="color: white; margin-top: -10px;">${greeting}, ReaderGuy42!</div>
</div>
`);

 ```


E

--- column-break ---




### [[Kanban]]
```dataview
TASK
FROM "00 Todo/Kanban"
LIMIT 3
```


--- end-multi-column

Off-topic(?):

I’m noticing you’re using the plugin that failed for me.
I’ve had better results with Obsidian Columns, which was friendly with Meta Bind as well.

I’m liking the font and the glossy look btw.

What failed for you? For me the multi-column plugin is working pretty well.

What is Meta Bind?

I just tried Obsidian Columns, and I can’t seem to embed dataview queries. Am I doing that wrong?

The header font is Gloucester W01 Bold, and what you’re calling glossy is probably a slight text shadow via CSS.

Sorry for being late getting back.
I just tried myself. Indeed, as pointed out here, for some reason, normal DV queries don’t show in Reading Mode, only Live Preview. But I got DVJs queries to work in both modes.

  • So as a workaround, one can use Dvjs braces and slightly different code formatting (so FILTER becomes .filter, etc. – chat bot can help).

However, you don’t necessarily need a plugin to handle multi-column layouts.
In this example vault, the person uses CSS only. Take the CSS file from the snippets folder and see how he does it in the Dashboard.md file or alternatively, see:

So you will have more control over spacing.

Thanks for that! That actually solved two problems, the thing with the spacing, and also that any note with the mutli-column plugin content would not work on launch of the vault.

So thanks!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.