WordPress.org

Ready to get started?Download WordPress

Forums

Vimeo iframe width="100%" height= "auto" does not work... (1 post)

  1. davidismyfriend
    Member
    Posted 2 years ago #

    Hello everyone I have a problem when I try to embed videos in my wordpress,
    the width is perfect but the height does not react dynamically

    I coded my wordpress theme with three different css for three different screen heights, large (1181px and more), medium (from 871px to 1180px) and small (870px and less).

    So doing something like width="100%" height="506px" would just work for the large screen size css but for the two others it won't...

    I am just looking for a way to have an automatic height adjustment
    Btw the video from my Vimeo
    .
    An example is this old video that is on my blog:
    http://news.davidshama.com/?p=79
    If you have a big screen it should be almost perfect regarding the height of the video, under 1180px height of your screen your looking at the medium size css and will have two large black margins above and below the video.

    Anyone has an idea to fix that?

Topic Closed

This topic has been closed to new replies.

About this Topic