Reduce space below the state after hiding the graph

Hi

How do I reduce the space below the state after hiding the graph of mini graph card? Can anyone share the code?

Thanks

Please post your card code.

type: custom:mini-graph-card
entities:

  • sensor.electricity_cost
    font_size: 75
    name: Elec. Cost
    decimals: 3
    show:
    labels: false
    points: false
    graph: false
    font_size_header: 13px;

Welcome to the community. When posting code use this option to format your code

This will tighten up the format.

type: custom:mini-graph-card
entities:
  - sensor.electricity_cost
show:
  labels: false
  points: false
  graph: false
font_size_header: 13px
card_mod:
  style: |
    .states.flex {
      margin-top: -15px;
      margin-bottom: -25px;
    }

Sorry, doesn’t help much

If you are looking for further assistance you will nee to provide more information other than

You’ll need to install HACs and Card Mod to use the code I provide.