Card mod. Content spilling out of defined card size

I am trying to fit a vertical calendar card (week-planner-card) into a defined height card using card-mod.

I can get the card to be the correct height of 1900px but any extra content just keeps spilling beyond the boundary of the card.

  style: |
    ha-card {
      background: rgba(255,255,255,0.2);
      box-shadow: none;
      font-size: 18px !important;
      width: 330px;
      max-height: 1900px !important;

Is there a way to ignore any content which does not fit inside the card?


Try adding overflow: hidden;

That did it - thanks!