S
S
Sergey Sobol2021-01-08 16:51:26
css
Sergey Sobol, 2021-01-08 16:51:26

How to display a full preview of an iframe video on mobile phones?

Hey! You need to insert a video from YouTube, but on mobile versions the video is cut off from the inside and the text on the video preview is cut off accordingly. How can I either stretch the video to full width or center it on the left side?
5ff863569330a732882821.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sashabeep, 2021-01-09
@sashabeep

Already answered a similar question:
1) Keep the iframe aspect ratio the same as the video, for example, https://css-tricks.com/fluid-width-video/
Almost all frameworks like Bootstrap , Foundation already have ready-made presets for such frames
2) Don't embed iframe at all until asked by pepelsbay method https://www.youtube.com/watch?v=4JS70KB9GS0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question