Background Image


#1

Please bear with me. An absolute rookie when it comes to CSS. I am wondering how I would go about adding a web video to the background of the site (.webm) format.

Any help would be appreciated.


(Joe) #2

Not to discourage you or anything, but it might require a bit of finesse to get that to work practically.

You would need to use more than just Webm because support is not universal.

More importantly, maintaining readability with a the presence of a background video will require you to spend a bit of time modifying the CSS for a lot of elements to add backgrounds otherwise the text won’t be easy to read.

With that being said, if you still really want to do this here’s an example on Codepen - the same can be easily applied under site customization in Discourse admin

If you give it a go and have specific problems I’d be happy to help.