How to add CSS to a module?

Re: How to add CSS to a module?

par Diane Soini,
Nombre de réponses : 0

Have you tried simply using more specific CSS selectors to override styles? For instance, if you were overriding a style for ul.some-class, use body.some-class ul.some-class to create a more specific rule in your CSS. You can use

$PAGE->add_body_class('some-class-you-want-to-add');
to add a class that you can use in your module's CSS.
Moyenne des évaluations Useful (2)