Jul 19, 20214:27 AM - edited Jul 19, 20214:28 AM
Participant
Using Field to specifiy CSS attributes for Pseudo-classes
SOLVE
Dear Hubspot Community, as the title suggests, I would like to ask about how to pass a Field Value into CSS property only "on hover" of an element inside a custom Module. I have tried creating the Field "color_field" containing the values, using Hubl markup to create a variable such as {% set TextHoverColor = '{{module.color_field.color}}' %} and assigning this variable as value of a CSS property for the said element. The Hubl Markup I have written directly inside the module's Hubl+HTML area, while the assigning is done in a seperate Hubl+CSS file that is then linked to the module. But the desired effect is unfortunately still not achieved. Could you give me a suggestion on how this can be done ? Thank you in advance.
Did you check the documentation for the modules. You can use the 'require_css' for better handeling your css. Your css will need to be added to the 'Hubl+HTML' section.
When using the color field, it will return multiple values.
Did you check the documentation for the modules. You can use the 'require_css' for better handeling your css. Your css will need to be added to the 'Hubl+HTML' section.
When using the color field, it will return multiple values.