Skip to main content

Hi everyone,

I'm trying to apply CSS to an "HTML Page" training material item in a course, but it's not working as expected.

  • When I test my HTML and CSS in CodePen, everything works fine.

  • In Docebo, I add a new "HTML Page" training material and paste my HTML code.

  • Then, I go to Custom Styles and paste my CSS code.

  • After saving and refreshing the course page, the CSS is not applied.

I've used this method before, and it usually works without issues. Could this be related to how Docebo handles CSS for course players versus page widgets? Do I need to specify anything in the code to ensure it applies correctly?

Any insights or troubleshooting suggestions would be greatly appreciated!

Thanks in advance!

There is a separate place for training material CSS under course player.

Did you try to place your code there?

 

 


Also note that not all HTML works across the LMS. The HTML/WYSIWYG widget for example, is quite limited as well. Basic HTML works well but things like buttons are harder to code and get working.


thanks ​@gstager, I wasn’t aware of that option specifically for HTML pages in a course. I was able to apply the code now. 

many thanks! 


Reply