Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Background-video

Can you put a video as a background of the <body></body> with url ? if yes, how would you do it with css please?

I'm not sure you can set a video as a background, but you can create a full height container and send it to the background using z-index, then add background transparency to the rest of the containers.

2 Answers

Here is a good link on what I believe you want to do:

Creating a fullscreen HTML5 video background with CSS

You would need to use JavaScript to do this, even if you only learn enough to do it with a jQuery plugin like Vide.