<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Centering a video embed in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924375#M37929</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am working to create a module that has a rich text section on the left and a embeded video on the right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the HTML for the embed video section:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="JTA-player-right"&amp;gt;&lt;BR /&gt;{% if module.podcast_embed_code.source_type == "oembed" %}&lt;BR /&gt;{% set oembedResponse = module.podcast_embed_code.oembed_response %}&lt;BR /&gt;&amp;lt;div class="oembed_container {% if module.podcast_embed_code.size_type == 'auto_full_width' %} oembed_container--full-size{% endif %}" id="oembed_container-{{name}}"&amp;gt;&lt;BR /&gt;&amp;lt;div class="iframe_wrapper"&lt;BR /&gt;data-embed-response-html="{{ oembedResponse.html|escape }}"&lt;BR /&gt;data-embed-response-width="{{ oembedResponse.width }}"&lt;BR /&gt;data-embed-response-height="{{ oembedResponse.height }}"&lt;BR /&gt;data-embed-url="{{ module.podcast_embed_code.oembed_url }}"&lt;BR /&gt;{% unless module.podcast_embed_code.size_type == "auto_full_width" || module.podcast_embed_code.size_type == "exact" %}&lt;BR /&gt;data-max-height="{% if module.podcast_embed_code.size_type == "auto_custom_max" %}{{ module.podcast_embed_code.max_height }}{% endif %}"&lt;BR /&gt;data-max-width="{% if module.podcast_embed_code.size_type == "auto_custom_max" %}{{ module.podcast_embed_code.max_width }}{% endif %}"&lt;BR /&gt;{% endunless %}&lt;BR /&gt;{% if module.podcast_embed_code.size_type == "exact" %}&lt;BR /&gt;data-height="{{ module.podcast_embed_code.height }}"&lt;BR /&gt;data-width="{{ module.podcast_embed_code.width }}"&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% require_css %}&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.oembed_container {&lt;BR /&gt;display: inline-block;&lt;BR /&gt;height: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.oembed_container .iframe_wrapper &amp;gt; * {&lt;BR /&gt;height: 100%;&lt;BR /&gt;left: 0;&lt;BR /&gt;margin: 0 auto;&lt;BR /&gt;position: absolute;&lt;BR /&gt;right: 0;&lt;BR /&gt;top: 0;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.iframe_wrapper {&lt;BR /&gt;height: 0;&lt;BR /&gt;padding-bottom: 56.25%;&lt;BR /&gt;padding-top: 25px;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;{% end_require_css %}&lt;BR /&gt;{% require_js %}&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function loadEmbedField(oembedContainer) {&lt;BR /&gt;const iframeWrapper = oembedContainer.querySelector('.iframe_wrapper');&lt;BR /&gt;if (!iframeWrapper) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;const url = iframeWrapper.dataset.embedUrl;&lt;BR /&gt;if (!url) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function setIframe(data) {&lt;BR /&gt;let {&lt;BR /&gt;maxHeight,&lt;BR /&gt;maxWidth,&lt;BR /&gt;height,&lt;BR /&gt;width,&lt;BR /&gt;} = iframeWrapper.dataset;&lt;BR /&gt;maxHeight = maxHeight !== undefined &amp;amp;&amp;amp; !maxHeight ? data.height : maxHeight;&lt;BR /&gt;maxWidth = maxWidth !== undefined &amp;amp;&amp;amp; !maxWidth ? data.width : maxWidth;&lt;BR /&gt;height = height !== undefined &amp;amp;&amp;amp; !height ? data.height : height;&lt;BR /&gt;width = width !== undefined &amp;amp;&amp;amp; !width ? data.width : width;&lt;/P&gt;&lt;P&gt;const el = document.createElement('div');&lt;BR /&gt;el.innerHTML = data.html;&lt;BR /&gt;const iframe = el.firstChild;&lt;BR /&gt;iframeWrapper.appendChild(iframe);&lt;/P&gt;&lt;P&gt;if (maxHeight) {&lt;BR /&gt;const maxHeightStr = maxHeight.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.maxHeight = maxHeightStr;&lt;BR /&gt;iframe.style.maxHeight = maxHeightStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (maxWidth) {&lt;BR /&gt;const maxWidthStr = maxWidth.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.maxWidth = maxWidthStr;&lt;BR /&gt;iframe.style.maxWidth = maxWidthStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (height) {&lt;BR /&gt;const heightStr = height.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.height = heightStr;&lt;BR /&gt;iframe.style.height = heightStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (width) {&lt;BR /&gt;const widthStr = width.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.width = widthStr;&lt;BR /&gt;iframe.style.width = widthStr;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const embedResponse = {&lt;BR /&gt;html: iframeWrapper.dataset.embedResponseHtml,&lt;BR /&gt;width: iframeWrapper.dataset.embedResponseWidth,&lt;BR /&gt;height: iframeWrapper.dataset.embedResponseHeight&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;if (embedResponse.html) {&lt;BR /&gt;setIframe(embedResponse);&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const request = new XMLHttpRequest();&lt;BR /&gt;const requestUrl = "/_hcms/oembed?url=" + encodeURIComponent(url) + "&amp;amp;autoplay=0";&lt;BR /&gt;request.open('GET', requestUrl, true);&lt;BR /&gt;request.onload = function() {&lt;BR /&gt;if (request.status &amp;gt;= 200 &amp;amp;&amp;amp; request.status &amp;lt; 400) {&lt;BR /&gt;const data = JSON.parse(request.responseText);&lt;BR /&gt;setIframe(data);&lt;BR /&gt;} else {&lt;BR /&gt;console.error('Server reached, error retrieving results.');&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;request.onerror = function() {&lt;BR /&gt;console.error('Could not reach the server.');&lt;BR /&gt;};&lt;BR /&gt;request.send();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;document.addEventListener('DOMContentLoaded', function() {&lt;BR /&gt;var oEmbedContainers = document.getElementsByClassName('oembed_container');&lt;BR /&gt;Array.prototype.forEach.call(oEmbedContainers, loadEmbedField)&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;{% end_require_js %}&lt;BR /&gt;{% else %}&lt;BR /&gt;&amp;lt;div id="embed_container" class="embed_container"&amp;gt;&lt;BR /&gt;&amp;lt;div class="iframe_wrapper"&amp;gt;&lt;BR /&gt;{{ module.podcast_embed_code.embed_html }}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% require_css %}&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.iframe_wrapper {&lt;BR /&gt;height: 0;&lt;BR /&gt;padding-bottom: 56.25%;&lt;BR /&gt;padding-top: 25px;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.embed_container {&lt;BR /&gt;display: inline-block;&lt;BR /&gt;height: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.embed_container iframe {&lt;BR /&gt;left: 0;&lt;BR /&gt;max-height: 100%;&lt;BR /&gt;max-width: 100%;&lt;BR /&gt;position: absolute;&lt;BR /&gt;right: 0;&lt;BR /&gt;top: 0;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;{% end_require_css %}&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the CSS for the section:&lt;/P&gt;&lt;P&gt;.JTA-player-right {&lt;BR /&gt;display:flex;&lt;BR /&gt;justify-content: center;&lt;BR /&gt;width: 50%;&lt;BR /&gt;height: 315px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking it has somethign to do that in my CSS I am using display: flext and the HTML code is using positioning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page has the module in the 2nd section if that helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://jonestheagency-com.sandbox.hs-sites.com/-temporary-slug-01fe0d8f-ea37-45c0-92be-327b7bb4c434?hs_preview=dwUYAitR-145658581562&amp;amp;" target="_blank"&gt;https://jonestheagency-com.sandbox.hs-sites.com/-temporary-slug-01fe0d8f-ea37-45c0-92be-327b7bb4c434?hs_preview=dwUYAitR-145658581562&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
    <pubDate>Sat, 17 Feb 2024 15:45:51 GMT</pubDate>
    <dc:creator>SlimSr2003</dc:creator>
    <dc:date>2024-02-17T15:45:51Z</dc:date>
    <item>
      <title>Centering a video embed</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924375#M37929</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am working to create a module that has a rich text section on the left and a embeded video on the right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the HTML for the embed video section:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="JTA-player-right"&amp;gt;&lt;BR /&gt;{% if module.podcast_embed_code.source_type == "oembed" %}&lt;BR /&gt;{% set oembedResponse = module.podcast_embed_code.oembed_response %}&lt;BR /&gt;&amp;lt;div class="oembed_container {% if module.podcast_embed_code.size_type == 'auto_full_width' %} oembed_container--full-size{% endif %}" id="oembed_container-{{name}}"&amp;gt;&lt;BR /&gt;&amp;lt;div class="iframe_wrapper"&lt;BR /&gt;data-embed-response-html="{{ oembedResponse.html|escape }}"&lt;BR /&gt;data-embed-response-width="{{ oembedResponse.width }}"&lt;BR /&gt;data-embed-response-height="{{ oembedResponse.height }}"&lt;BR /&gt;data-embed-url="{{ module.podcast_embed_code.oembed_url }}"&lt;BR /&gt;{% unless module.podcast_embed_code.size_type == "auto_full_width" || module.podcast_embed_code.size_type == "exact" %}&lt;BR /&gt;data-max-height="{% if module.podcast_embed_code.size_type == "auto_custom_max" %}{{ module.podcast_embed_code.max_height }}{% endif %}"&lt;BR /&gt;data-max-width="{% if module.podcast_embed_code.size_type == "auto_custom_max" %}{{ module.podcast_embed_code.max_width }}{% endif %}"&lt;BR /&gt;{% endunless %}&lt;BR /&gt;{% if module.podcast_embed_code.size_type == "exact" %}&lt;BR /&gt;data-height="{{ module.podcast_embed_code.height }}"&lt;BR /&gt;data-width="{{ module.podcast_embed_code.width }}"&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% require_css %}&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.oembed_container {&lt;BR /&gt;display: inline-block;&lt;BR /&gt;height: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.oembed_container .iframe_wrapper &amp;gt; * {&lt;BR /&gt;height: 100%;&lt;BR /&gt;left: 0;&lt;BR /&gt;margin: 0 auto;&lt;BR /&gt;position: absolute;&lt;BR /&gt;right: 0;&lt;BR /&gt;top: 0;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.iframe_wrapper {&lt;BR /&gt;height: 0;&lt;BR /&gt;padding-bottom: 56.25%;&lt;BR /&gt;padding-top: 25px;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;{% end_require_css %}&lt;BR /&gt;{% require_js %}&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function loadEmbedField(oembedContainer) {&lt;BR /&gt;const iframeWrapper = oembedContainer.querySelector('.iframe_wrapper');&lt;BR /&gt;if (!iframeWrapper) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;const url = iframeWrapper.dataset.embedUrl;&lt;BR /&gt;if (!url) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function setIframe(data) {&lt;BR /&gt;let {&lt;BR /&gt;maxHeight,&lt;BR /&gt;maxWidth,&lt;BR /&gt;height,&lt;BR /&gt;width,&lt;BR /&gt;} = iframeWrapper.dataset;&lt;BR /&gt;maxHeight = maxHeight !== undefined &amp;amp;&amp;amp; !maxHeight ? data.height : maxHeight;&lt;BR /&gt;maxWidth = maxWidth !== undefined &amp;amp;&amp;amp; !maxWidth ? data.width : maxWidth;&lt;BR /&gt;height = height !== undefined &amp;amp;&amp;amp; !height ? data.height : height;&lt;BR /&gt;width = width !== undefined &amp;amp;&amp;amp; !width ? data.width : width;&lt;/P&gt;&lt;P&gt;const el = document.createElement('div');&lt;BR /&gt;el.innerHTML = data.html;&lt;BR /&gt;const iframe = el.firstChild;&lt;BR /&gt;iframeWrapper.appendChild(iframe);&lt;/P&gt;&lt;P&gt;if (maxHeight) {&lt;BR /&gt;const maxHeightStr = maxHeight.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.maxHeight = maxHeightStr;&lt;BR /&gt;iframe.style.maxHeight = maxHeightStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (maxWidth) {&lt;BR /&gt;const maxWidthStr = maxWidth.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.maxWidth = maxWidthStr;&lt;BR /&gt;iframe.style.maxWidth = maxWidthStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (height) {&lt;BR /&gt;const heightStr = height.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.height = heightStr;&lt;BR /&gt;iframe.style.height = heightStr;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (width) {&lt;BR /&gt;const widthStr = width.toString(10) + "px";&lt;BR /&gt;oembedContainer.style.width = widthStr;&lt;BR /&gt;iframe.style.width = widthStr;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const embedResponse = {&lt;BR /&gt;html: iframeWrapper.dataset.embedResponseHtml,&lt;BR /&gt;width: iframeWrapper.dataset.embedResponseWidth,&lt;BR /&gt;height: iframeWrapper.dataset.embedResponseHeight&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;if (embedResponse.html) {&lt;BR /&gt;setIframe(embedResponse);&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const request = new XMLHttpRequest();&lt;BR /&gt;const requestUrl = "/_hcms/oembed?url=" + encodeURIComponent(url) + "&amp;amp;autoplay=0";&lt;BR /&gt;request.open('GET', requestUrl, true);&lt;BR /&gt;request.onload = function() {&lt;BR /&gt;if (request.status &amp;gt;= 200 &amp;amp;&amp;amp; request.status &amp;lt; 400) {&lt;BR /&gt;const data = JSON.parse(request.responseText);&lt;BR /&gt;setIframe(data);&lt;BR /&gt;} else {&lt;BR /&gt;console.error('Server reached, error retrieving results.');&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;request.onerror = function() {&lt;BR /&gt;console.error('Could not reach the server.');&lt;BR /&gt;};&lt;BR /&gt;request.send();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;document.addEventListener('DOMContentLoaded', function() {&lt;BR /&gt;var oEmbedContainers = document.getElementsByClassName('oembed_container');&lt;BR /&gt;Array.prototype.forEach.call(oEmbedContainers, loadEmbedField)&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;{% end_require_js %}&lt;BR /&gt;{% else %}&lt;BR /&gt;&amp;lt;div id="embed_container" class="embed_container"&amp;gt;&lt;BR /&gt;&amp;lt;div class="iframe_wrapper"&amp;gt;&lt;BR /&gt;{{ module.podcast_embed_code.embed_html }}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% require_css %}&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.iframe_wrapper {&lt;BR /&gt;height: 0;&lt;BR /&gt;padding-bottom: 56.25%;&lt;BR /&gt;padding-top: 25px;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.embed_container {&lt;BR /&gt;display: inline-block;&lt;BR /&gt;height: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.embed_container iframe {&lt;BR /&gt;left: 0;&lt;BR /&gt;max-height: 100%;&lt;BR /&gt;max-width: 100%;&lt;BR /&gt;position: absolute;&lt;BR /&gt;right: 0;&lt;BR /&gt;top: 0;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;{% end_require_css %}&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the CSS for the section:&lt;/P&gt;&lt;P&gt;.JTA-player-right {&lt;BR /&gt;display:flex;&lt;BR /&gt;justify-content: center;&lt;BR /&gt;width: 50%;&lt;BR /&gt;height: 315px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking it has somethign to do that in my CSS I am using display: flext and the HTML code is using positioning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page has the module in the 2nd section if that helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://jonestheagency-com.sandbox.hs-sites.com/-temporary-slug-01fe0d8f-ea37-45c0-92be-327b7bb4c434?hs_preview=dwUYAitR-145658581562&amp;amp;" target="_blank"&gt;https://jonestheagency-com.sandbox.hs-sites.com/-temporary-slug-01fe0d8f-ea37-45c0-92be-327b7bb4c434?hs_preview=dwUYAitR-145658581562&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 15:45:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924375#M37929</guid>
      <dc:creator>SlimSr2003</dc:creator>
      <dc:date>2024-02-17T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a video embed</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924461#M37930</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/47662"&gt;@SlimSr2003&lt;/a&gt;&amp;nbsp;happy to take a look, the link you shared requires HubSpot login though - can you publish to a live test page instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 02:40:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924461#M37930</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-02-18T02:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a video embed</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924537#M37933</link>
      <description>&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;Thanks for taking the time. Here is a staged page:&amp;nbsp;&lt;A href="https://jonestheagency-com.sandbox.hs-sites.com/marcome_mode_test" target="_blank"&gt;https://jonestheagency-com.sandbox.hs-sites.com/marcome_mode_test&lt;/A&gt;&amp;nbsp;let me know if you can't access this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 17:02:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924537#M37933</guid>
      <dc:creator>SlimSr2003</dc:creator>
      <dc:date>2024-02-18T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a video embed</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924549#M37934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/47662"&gt;@SlimSr2003&lt;/a&gt;&amp;nbsp;so the biggest issue I see with using the Flex the way you have it, is that you are creating the left and right sides independently as separate flex areas, rather than creating a flex container and then establishing the flex-direction, flex-wrap, etc. which would then let you use justify-content: space-evenly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been working a lot lately on recoding some older CSS to use Flex and have found this &lt;A href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/" target="_blank" rel="noopener"&gt;guide to Flexbox&lt;/A&gt; to be the easiest to follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not saying the way you have it (with separate left and right areas) can't be done (I've been working with HTML/CSS for over 20 years, never as a full-time developer though) - playing around with your CSS I can't get the right side to center without changing the HTML structure of the container.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I love a good challenge, I don't wan to lead you down the wrong path - maybe&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;can confirm what would work best to center the video on the right.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 17:51:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Centering-a-video-embed/m-p/924549#M37934</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-02-18T17:51:53Z</dc:date>
    </item>
  </channel>
</rss>

