Hi,
Thank you for your message.
Unfortunately, CSS does not support using video files (.mp4, .webm, etc.) with the background-image property — this property only works with image formats such as .jpg, .png, .gif, etc. That’s why your custom class with background-image: url('...my_video.mp4') is not working — it's simply not valid CSS syntax.
Key Points:
- background-image only accepts image formats, not video.
- It’s not possible to display a video using CSS alone. A <video>element is required in the HTML to play videos.
There is no way to add a background video purely via CSS.