Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I still can't set width and height to be 100% or vh #433

Open
chaderenyore opened this issue May 10, 2022 · 1 comment
Open

I still can't set width and height to be 100% or vh #433

chaderenyore opened this issue May 10, 2022 · 1 comment

Comments

@chaderenyore
Copy link

Hello, am not chinese, I hope I can get help.
Am using the component with nuxt and I can't set the width and height of the video container not the video itself to 100% and set the height to 75vh so that the video can attach to it. In the dom there is another div that sets the style for me so It's that one I had to target.
like this

.video-player-box > div {
    width: 100% !important;
    height: 70vh !important;
 }
@xelinel32
Copy link

Hello, am not chinese, I hope I can get help. Am using the component with nuxt and I can't set the width and height of the video container not the video itself to 100% and set the height to 75vh so that the video can attach to it. In the dom there is another div that sets the style for me so It's that one I had to target. like this

.video-player-box > div {
    width: 100% !important;
    height: 70vh !important;
 }

videojs can pass fluid propery. Try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants