I need to overlap some images using a TWebImageControl. I'd like to put a border around the so you can see a clear boundary between the cards. They're like playing cards, and most playing cards have a small border on both sides.
There's no way to do that in a TWebImageControl. How can it be done? Using CSS? Or putting the image on a panel? Something else?
ElementClassName is a text field that supports a space-delimited list of CSS classes. I don't know if there's a limit to the overall length or number of classes, but you're unlikely to hit it in any kind of normal setting. Dozens of classes at least.
If you've added a CSS file to your project, you could define your own custom classes like Rotate180 and Border10 to your CSS file. in your Delphi app, in the ElementClassname, you would then add Rotate180 Border10 to that field, appending to whatever is there already if it isn't empty. Then in your CSS file you could try this.
Note that in the CSS, the classes start with a period. If you want to define a class that applies to exactly one element, use a # symbol and the ElementID property. CSS is insanely powerful but it takes a dramatically different approach than, say, VCL styling.