Tags:
This function, funcGenerateHTMLForColourGradientBackground, generates the HTML Text required to create a linear colour-gradient background for any number of colours.
It first creates a flex-box that will ensure the internal content is centred both vertically and horizontally, and then creates a div styled to render your colour-gradient background. Use this to easily uplift your Apps' UI!
If you wish to embed your colour-gradient background inside a Container (for an out-the-box drop-shadow for example), set the height of your HTML Text control to Parent.Height + 1 to cancel out the -1px embedded in the function that prevents the HTML Text control from rendering its scrollbar.