It’s possible with CSS so you might be able to use something like UDStyle to do so.
Here’s a stack overflow post about it:
Honestly, it looks a little crazy. But it just might work. You can use New-UDElement to create HTML tags and then use the UDStyle library to create CSS.