S
S
Sergey2015-09-14 23:53:18
PHP
Sergey, 2015-09-14 23:53:18

Full video background how does it work?

I can not understand. Here is the script on codepen
The css says

@media screen and (max-device-width: 800px) {
  html { background: url(//demosthenes.info/assets/images/polina.jpg) #000 no-repeat center center fixed; }
  #bgvid { display: none; }
}

But if you reduce the screen, the video does not disappear. Is it just me or everyone? And why?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Abdullaev, 2015-09-14
@rajdee

And why should it disappear if the general rules for the video tag are set?

video { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
...

A
archelon, 2015-09-15
@archelon

change (max-device-width: 800px) to (max-width: 800px)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question