matthojo / videojs-Background

Allows for videos to be displayed as a full background to any element.
MIT License
77 stars 41 forks source link

Element position or Background (video position) #11

Open Barzon opened 9 years ago

Barzon commented 9 years ago

Hello!

After solving the other issue, I had new one... I need to positioning the element with the video BG after some divs, but the Background does't start at the top of the video file.

How can i positioning the video in the background to add some offsets or something?

Any ideas?

snakefooc commented 9 years ago

Yes,

in option container used

container: document.getElementById('nameid'),

and Works !!!

Barzon commented 9 years ago

Yes, the same as container: $('nameid'); But, when I use that option, the video container gets 1920x1080 size (screen res) and I can't leave only div with height 520px and full width of window/div (for responsive).

I only need positioning the video into the container adding a 100px offset or padding or margin from body top, the video is cutted-off by the body div's in top or others.

See http://www.escuelaudiomusica.cl/magento

snakefooc commented 9 years ago

add classs

.video-js{ width: 100%!important; height: 100%:!important; }

matthojo commented 8 years ago

Is this solved?