A
A
Alexander Sinitsyn2015-10-25 00:31:06
css
Alexander Sinitsyn, 2015-10-25 00:31:06

How to make the poster be the size of the video in the video tag?

The video fits into the container, but for some reason the poster is displayed more. If you put it as a background, then the sizes are normal, but filters are not superimposed on the poster.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mark Doe, 2015-10-25
@mourr

Try making the poster with the same aspect ratio as the video, it might help
. Also, the object-fit: cover property affects the poster, but it is not supported by all browsers
. In general, telepaths are on vacation, you need to look directly at the problem video

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question