Official Content

Viewport units can be used on text to automatically change the font size depending on the viewport. 

This could be very useful when you need to comply with Accessibility for Web Applications issues.

In this example, the font-size has been set in vmax unit, creating the following responsive effect for the text:

i2016_03_23_14_15_114

In GeneXus, the attribute's Class property is set to "AttributeBigFonts" class.

i2016_03_23_14_23_215_png

The AttributeBigFonts has its Label Class property set to LabelBigFonts, which is a descendant class of Textblock. The LabelBigFonts Font-Size property is set to 2vmax, as shown in the picture below.

i2016_03_23_14_27_166_png

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant