V
V
vasIvas2015-08-05 15:14:04
css
vasIvas, 2015-08-05 15:14:04

How to set the maximum allowable dimensions?

There is an angularjs plugin called angular-video-bg .
He shows the video. The video has its own format. And so that this video shows the full width, I write one hundred percent width in styles. But to do the same for the height does not work. Now, if you write the given height, in pixels, then it shows. but it does not show, probably due to the fact that the plugin itself or the video itself cannot be of an arbitrary format. That is, if you specify a hundred percent width, then no matter what height I write in pixels, the plugin or the video tag itself adjusts the video format.
I'll sit down and calculate the height for all monitors in the code, but maybe there is a way to do the same with css? And I just don't know him at all...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yoshidamana, 2015-08-05
@vasIvas

In the example taken from the github, there is a parent div:

<div class="container" ng-controller="VideoCtrl">
      <video-bg video-id="video.id">
        <h1>angular-video-bg</h1>
      </video-bg>
    </div>

Did you style the diva?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question