How do I remove whitespaces around the images - Cards/Minimal theme

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

This is my dataview query. It works well. But with cssclasses property as cards, it shows images with whitespaces (left and right) and only 4 images in a row.

TABLE WITHOUT ID
	status as Status,
	"![|60](" + cover + ")" as Cover,
	link(file.link, title) as Title,
	authors as Author
FROM #book 
WHERE !contains(file.path, "Templates")
SORT status DESC, file.ctime ASC

Here is the screenshot.

Things I have tried

I checked all settings but I am confused. I also checked videos.

Please help me. Please.

Here is the screenshot:

You’ll need to share the CSS you’re using if you want someone to help debug it. Good luck!

1 Like

Hi, thank you for the reply.

I’m using the minimal theme. It has by default “cards” feature.

I just added in the property section: cssclasses - cards. I saw videos of people using this feature so I tried to adjust the appearance to “cards” view. But I’m getting the whitespaces on left and right of the image.

Here is the original code of the theme:

Please help.

Hi,

Can you please help?

No, sorry, I don’t know enough about Obsidian’s or Minimal’s CSS. I just knew that someone who does would need the info that wasn’t in the original post.

1 Like

Cawlin, yes, that’s right.

To be able to check and possibly help, someone would need the folder and/or tag structure that you/someone has set up, the notes and images the query is pulling from, etc.

That’s not a quick “let’s check this in my vault”. It requires a lot of setup on the side of anyone trying to help.

Hi, thank you for the reply.

The images are being pulled by book search plugin. They are cover of book pages.

There is no tag structure as such, as I just installed Obsidian few days ago and the book search, dataview plugin. I am beginner in Obsidian.

Example - https://www.youtube.com/watch?v=8eC8rXt8vz0&t=366s

Pls help.