How to add CSS to a module?

Re: How to add CSS to a module?

by Diane Soini -
Number of replies: 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.
Average of ratings: Useful (2)