WebLabel / Raw HTML Technique

In case you’ve missed this…

@Christian Schmitz has shared a really nice tip that shows how you can use a WebLabel and raw HTML to display an image in a Xojo Web app. This is particularly helpful if you want to display a scaled image and ensure that the dimensions are retained if the window is resized.



Christian’s idea for images is very nice idea! Raw rocks. Xojo has a post about the raw tag. I wish it worked for WebButton as well. For now, I’m using WebLabel as buttons. :slight_smile:

Raw can be used to show FontAwesome Icons with minimal effort.

Put this in App.HTMLHeader



Then put something like this in a WebLabel

<raw><i class="fas fa-user"></i></raw>

Anyone else have any using raw for anything else?