How to apply a CSS Class to a group?

Thameshin Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 1 ☆ Roadie ☆
Hi all. Im currently working to integrate external JS into my project. Im able to run the specific function on a single object by defining a CSS class in the object properties. But I actually want to run this on an entire group, unfortunately, Lectora does not allow me to define a CSS class on a group. Is there a workaround to this? Through some sort of coding?


  • timk
    timk Community Member Posts: 1,235 ✭ Legend ✭
    The group object has no equivalent in HTML after publication, so even if you could give it a class it would not help. You can give all objects the same class and objects can of course have more than one class. You could give all objects the class "group1" and add an individual class for each object, e.g. "item1", "item2".