Move text up in markdown

Hello, can anybody please help me how to bring the text in the middle up

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: markdown
        content: <center> <font size=6>Wohnzimmer </font>
        card_mod:
          style: |
            ha-card {
            height: 50px !important;
            padding-top: 0px !important;
            }

I think you need to show us more of your code. What you have shown does not cover the color in your screenshot.

You will need to give us everything or we can’t help.

Not sure that you need to set a padding for ha-card. May be you need to style an inner element instead. Use Code inspector to find out it for sure (consider using Code Inspector as a mandatory step for styling).
Also, you forcibly set a card’s height / but the card is inside a section. Perhaps you will need to style another card in the horizontal stack as well.

Hello, the color came from the iOS theme, I switched it off, morde code I do not have, as this is just a small part of my dashboard, to make it more easy
This is all I have of code , and without iOS

I can not find something like a code inspector, do you have a link, or ?


All came with the update to 05, before I hat a dashboard like I wanted,

Thanks Frank

Suggest you to test in default theme and on PC.
Code inspector is a tool available in Chrome (press F12). Other browsers (FF, Safari) have similar tools.

1 Like

Also, there are no changes in card mod in 2025.5, but there are changes in HA - check release notes , there must be a chapter about changes in variables.