How to reduce title size in canvas cards (and regular documents)?

What I’m trying to do

I’m trying to reduce the size of the title of documents used in a canvas. The title is way too big compared to the text.

Things I have tried

I’ve googled the problem and found a forum thread that said to use a css snippet, which I’ve tried but nothing happens. It also said to use style settings, but when I install the custom plugin called style settings, it doesn’t give me any instructions on how to use it, only links to a very complicated github-page.

Any ideas would be much appreciated!

For the inline title, you could try this:

.canvas .inline-title {
    font-size: 16px;
}

If you are using a h1 for your title, then this:

.canvas h1 {
    font-size: 1em;
}

This CSS will take effect when the card is rendered, i.e., when you click out of the card.

https://help.obsidian.md/Extending+Obsidian/CSS+snippets

1 Like

IT WORKED!! Oh my, thank you SO MUCH!! You made my day, cheers! :beers:

Great! I forgot to mention, but you can use a px value for the h1 as well; you generally want the headings to scale with the rest of the text, so a 1.2em (or whatever) is better there. The inline title is off on its own, so whatever looks good to you for that.

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