Quick question: CSS manipulation of invisible card with card_mod

Hi there,
can anyone point me to the correct syntax of how to add CSS to a div with style=“display:none” – and only if it has that style? Would like to use card_mod to remove paddings from those invisible divs, but so far I keep failing.

I think there is a note on card_mods GitHub page that says it only works with ha-card using cards

Thank you, I just realized this, too. rtfm :man_facepalming: – having said that… injecting CSS to HA seems to be not an easy task in general. Do you have any recommendations? I tried to set up CSS files as resources for dashboards, but the CSS i put there doesn’t seam to have any effects on the UI.

No idea, sorry. :frowning:

But maybe there are other cards to use to avoid the problem.
Try posting your YAML code for the cards.