<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Solution: Make YouTube embeds scale proportionally</title>
		<link>http://www.themolitor.com/forums/topic/solution-make-youtube-embeds-scale-proportionally</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Solution: Make YouTube embeds scale proportionally</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 21:58:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/solution-make-youtube-embeds-scale-proportionally" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Solution: Make YouTube embeds scale proportionally"</title>
			<link>http://www.themolitor.com/forums/topic/solution-make-youtube-embeds-scale-proportionally#post-33265</link>
			<pubDate>Mon, 02 Mar 2015 10:32:08 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">33265@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for sharing! :-)
</p></description>
		</item>
		<item>
			<title>Dalileis on "Solution: Make YouTube embeds scale proportionally"</title>
			<link>http://www.themolitor.com/forums/topic/solution-make-youtube-embeds-scale-proportionally#post-33258</link>
			<pubDate>Sat, 28 Feb 2015 21:46:13 +0000</pubDate>
			<dc:creator>Dalileis</dc:creator>
			<guid isPermaLink="false">33258@http://www.themolitor.com/forums/</guid>
			<description><p>Widescreen HTML:</p>
<pre><code>&#60;div class=&#34;js-video widescreen [vimeo, widescreen]&#34;&#62;
  &#60;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;http://www.youtube.com/embed/wN3gueLT0D8?showinfo=0&#34; frameborder=&#34;0&#34; allowfullscreen&#62;&#60;/iframe&#62;
&#60;/div&#62;</code></pre>
<p>Vimeo HTML:</p>
<pre><code>&#60;div class=&#34;js-video vimeo [vimeo, widescreen]&#34;&#62;
  &#60;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;http://www.youtube.com/embed/wN3gueLT0D8?showinfo=0&#34; frameborder=&#34;0&#34; allowfullscreen&#62;&#60;/iframe&#62;
&#60;/div&#62;</code></pre></description>
		</item>
		<item>
			<title>Dalileis on "Solution: Make YouTube embeds scale proportionally"</title>
			<link>http://www.themolitor.com/forums/topic/solution-make-youtube-embeds-scale-proportionally#post-33257</link>
			<pubDate>Sat, 28 Feb 2015 21:32:17 +0000</pubDate>
			<dc:creator>Dalileis</dc:creator>
			<guid isPermaLink="false">33257@http://www.themolitor.com/forums/</guid>
			<description><p>If the video is widescreen use: padding-bottom: 56.34%; above, otherwise: padding-bottom: 67.5%;.
</p></description>
		</item>
		<item>
			<title>Dalileis on "Solution: Make YouTube embeds scale proportionally"</title>
			<link>http://www.themolitor.com/forums/topic/solution-make-youtube-embeds-scale-proportionally#post-33256</link>
			<pubDate>Sat, 28 Feb 2015 21:24:09 +0000</pubDate>
			<dc:creator>Dalileis</dc:creator>
			<guid isPermaLink="false">33256@http://www.themolitor.com/forums/</guid>
			<description><p>Problem: </p>
<p>When you embed YouTube in your pages and posts, it does not scale proportionally like the rest of the content (wrapping text, accordion toggle buttons, etc...). Not a problem on full version, where fixed dimensions look ok. Problem on mobile version where fixed dimensions look less good. So how do you make YouTube embeds scale proportionally just like the rest of the content?</p>
<p>Solution (tested and working with Navigator 2.2.2. and also works for Vimeo embeds):</p>
<p>HTML:<br />
<pre><code>&#60;div class=&#34;js-video [vimeo, widescreen]&#34;&#62;
  &#60;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;http://www.youtube.com/embed/wN3gueLT0D8?showinfo=0&#34; frameborder=&#34;0&#34; allowfullscreen&#62;&#60;/iframe&#62;
&#60;/div&#62;</code></pre>
<p>CSS (in style.css OR Wordpress dashboard &#62; Appearance &#62; Theme Options &#62; Custom CSS):<br />
<pre><code>/*---RESPONSIVE YOUTUBE &#38; VIMEO STUFF---*/

.js-video {
  height: 0;
  padding-top: 25px;
  padding-bottom: 67.5%;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.js-video.widescreen {
  padding-bottom: 56.34%;
}

.js-video.vimeo {
  padding-top: 0;
}

.js-video embed, .js-video iframe, .js-video object, .js-video video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}</code></pre></description>
		</item>

	</channel>
</rss>
