Responsive Video Embeds
[resolved] Way to specify different reference width of video? (4 posts)

  1. Cameron
    Posted 2 years ago #

    If I attempt to use css to adjust width of the .rve div wrapping the video (for example to width=75%) it seems that this plugin does not pick up on this. The width does shrink, but the height/width aspect ratio is not maintained (which to be fair, is a problem I've experienced independent of this plugin).

    Is there a way for me to control the relative with of the video via the div.rve element without having to set a relative width on the parent HTML element?


  2. Kevin Leary
    Plugin Author

    Posted 2 years ago #

    The latest release, version 1.2.2, will resize videos with JavaScript on window load and resize events, which should respect the CSS width you set on those .rve div's. If you upgrade, let me know how it works.

  3. BartJones
    Posted 2 years ago #

    My video needs to be 990 px wide. Is there a way to make that the reference width when the page is loading. Right now when loading it is about 500px and then jumps to the right width.

  4. Cameron
    Posted 2 years ago #

    Thanks Kevin. Before you posted, I figured out a way to work around my issue by controlling the size of the parent element, which ended up working out better for me in the long run.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Responsive Video Embeds
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.