M
M
Millerish2016-06-30 14:18:06
HTML
Millerish, 2016-06-30 14:18:06

How to center video in html player?

Good afternoon!
Tell me how to properly center the video in the html player (i.e. the video itself inside the video block) vertically.
I am at war on this issue with this example . If you start the video there will be a black bar under the video:
57b68e513811432286c627531a60be01.png
I understand that you can fit the block size under the video, but this situation cannot be changed on mobile and tablets when expanded to full screen.
How can you solve my situation? Margin and pidding do not help and sensible nothing googled.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ArturArturov, 2016-06-30
@Millerish

video{
display: block;
}
and not display: inline-block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question