Easy way to override ud-card height for a single card?

I know you can specify css attributes in your theme like

UDCard              = @{
        BackgroundColor = "#F7F7F7"
        FontColor       = "#2C2C2C"

But what if you only want to change a single card’s height, for example? I tried wrapping the card in a div and specifying attributes, but couldn’t get it to work.

You could probably use UDStyle to do this because it applies the CSS classes directly to it’s children rather than the entire page. I don’t know the style off the top of my head to achieve this though.

1 Like

That works!

For reference:

New-UDStyle -Style '
            .card {
            min-height: 500px !important;
            }' -Content { }
1 Like

Hey question… Is this a 3.0 thing? dont see the cmdlet available in 2.9 enterprise?

Hey there. UDStyle is a universal dashboard component available on the PowerShell gallery. You download and use it like any other module.

1 Like

Awesomeness, going to give this a shot… thanks!