August 2017
Beginner
298 pages
7h 4m
English
Currently, all the videos are small in size. Hence, we need a feature to enlarge the videos, such as:
This sounds fine. To make this happen, let's add some styles to our styles.css file:
@media only screen and (max-width: 736px) { .video-selected { max-height: 70vw; max-width: 70vw; }}@media only screen and (min-width: 736px) { .video-selected { max-height: 50vh; max-width: 50vh; } .container-selected { order: -1; }}
We have added two sets of styles using media queries. One for mobile (max-width: 736px) and another for desktops ...
Read now
Unlock full access