I am using a markdown card. Today I noticed that there is an issue with cardmod. I think it is there since HA 2025.11.1. The code below was always without slider on the right and now there is one.
If I remove the “margin-top= -20” then it works, but then it is not at the correct position in the vertical stack. It looks like, that the issue is only with markdown. The other mushroom cards in the vertical stack are correct and also using the margin-top: -20px
Any ideas? It works for more that a year correctly!
Do you still have the issue with a removed card-mod code?
If yes - suggest you to do nothing. Just wait until it is fixed in HA.
If no - it is caused by your margin thing. Usually it is not a good practice to play with margins for ha-card. Suggest to find another way.
thank you very much for your reply. The isssues are still there and only for markdown. All other cards are working with the margin -10.
If I do not play with margin, a cannot adjust the “red” and the “green” box to be in line. Also the space between the Headline and the boxes it to large. Are there other options to bring the two cards in line?
Just a note here, 2025.11 introduced overflow-y: scroll to a bunch of cards including markdown. So with everything else the same, you can manage scrollbars being shown by setting overflow-y: visible (or perhaps clip together with overflow-clip-margin or maybe hidden).