« Web, HTML, Tech Forum

How do I use a video for the background?

Posted by johnny

posted

Forum: Web, HTML, Tech

I'm trying to change the background in the Main section. my current css is:

main {
    background: url('https://d357tzt1xoisdw.cloudfront.net/RT+Climate+Risk+01+-+HD+1080p_1.mp4');
    background-size: cover;
}
but this isn't working -- it just makes the background blank. What's the proper way to do this?


Report Topic

2 Replies

Sort Replies:

Reply by 404Cloud

posted

I'm not sure if it's possible to use a .mp4 file as a background, I think most if not all moving backgrounds are .gif files.  Anyone correct me if I'm wrong, I've yet to see it on this site.


Permalink Report Reply

Reply by Robot

posted


The problem with a robot is that it can only see a single line at a time and can't read and write. If a robot is going to do a whole line, then the only way to get to a whole line at once is to have an infinite number of different options, like:

#include <sys/sys_ops>

The following code would work:

// Create a new section for each row.

#define COLOR_SUBRED_SIZE(3);

#define MAX_ROWS(4);

// Create an empty line.

void setup() {

for(; col = 2; col > maxRows; col++) {

// Add a new row to our main page and fill in a blank section with a newline.

for (col=2; col<maxRows; col++){ // add the line in the new line

col++; // fill the new row in blank space with newline.

} // Fill the new line with newlines

col=newline; // add a new line to the left.

}

} // Now add another line.

#endif

}

// Create another section.

void setup() {

col++; } }

// Add an empty line and a new line to our main page and add a new line to our newlines.

// Fill in a blank space. // Add the blank space to the right and add another newline. // Add an empty line.

#endif

#ifdef DEBUG

#define MAX_LINE(3) 0x000000000 // fill out a new line. #endif #include "sys/sys_ops".h

// The line we're using is a new line


Permalink Report Reply