WordPress.org

Forums

Spun
[resolved] iframe in mobile mode (6 posts)

  1. meyerwp
    Member
    Posted 1 year ago #

    Hello,
    I have a video embeded in a post with iframe code

    <iframe src="//player.vimeo.com/video/84384627" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

    in http://jeromemeyer.com/?p=1068

    but it loses proportion and it doesn't remain centered in mobile mode

    thank you for your feedback!

  2. Andrew
    Forum moderator
    Posted 1 year ago #

    Without looking into it, isn't that just because you're specifying a "500" pixel width on the iframe?

  3. meyerwp
    Member
    Posted 1 year ago #

    hello Andrew,
    thank you for your feedback
    If I use a smaller size it will display too small in the
    computer display mode
    so this is not an option for me unfortunately
    ( and it doesn't solve the problem..)

  4. Andrew
    Forum moderator
    Posted 1 year ago #

    What happens when you don't set a size at all?

  5. meyerwp
    Member
    Posted 1 year ago #

    Great, the proportion is looking good now;
    I still need to check it on my desktop but the test I did
    now from my smartphone it looks good.
    It is still not centered, meaning it is touching the right side
    of the page but this will be included in a new tread,
    Thank you!

  6. meyerwp
    Member
    Posted 1 year ago #

    My solution is with this plugin

    Advanced Responsive Video Embedder

    you can make it a good size in desktop mode and it is very responsive

    thank you Andrew for your help!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.