<?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 Disable Styling for Div when no content in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36298#M3542</link>
    <description>&lt;P&gt;I'm not sure if anything can be done for this but here is the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My client wanted a page with videos posted about thier product. I used Rich Text modules where we could put a video and some text. I styled it with a boarder and a drop shadow. They look fine unless there is no content then I get a long narrow box:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Video-box-2017-11-03_11-43-43.jpg" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/6203i5821FCA3325B1D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Video-box-2017-11-03_11-43-43.jpg" alt="Video-box-2017-11-03_11-43-43.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is the css code i used:&lt;/P&gt;&lt;P&gt;/*===== video resource box ====*/&lt;BR /&gt;.videoresource &amp;gt; div {&lt;BR /&gt;border-style: solid;&lt;BR /&gt;border-width: 2px;&lt;BR /&gt;border-radius: 10px;&lt;BR /&gt;border-color: #BCBEC0;&lt;BR /&gt;box-shadow: 10px 10px 20px #888888;&lt;BR /&gt;padding: 5px;&lt;BR /&gt;margin-bottom: 15px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the template has been made and I use it on a page, I cannot take out the Rich Text box or change the styling on the indifividual box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 18:52:26 GMT</pubDate>
    <dc:creator>tlorang</dc:creator>
    <dc:date>2017-11-03T18:52:26Z</dc:date>
    <item>
      <title>Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36298#M3542</link>
      <description>&lt;P&gt;I'm not sure if anything can be done for this but here is the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My client wanted a page with videos posted about thier product. I used Rich Text modules where we could put a video and some text. I styled it with a boarder and a drop shadow. They look fine unless there is no content then I get a long narrow box:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Video-box-2017-11-03_11-43-43.jpg" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/6203i5821FCA3325B1D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Video-box-2017-11-03_11-43-43.jpg" alt="Video-box-2017-11-03_11-43-43.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is the css code i used:&lt;/P&gt;&lt;P&gt;/*===== video resource box ====*/&lt;BR /&gt;.videoresource &amp;gt; div {&lt;BR /&gt;border-style: solid;&lt;BR /&gt;border-width: 2px;&lt;BR /&gt;border-radius: 10px;&lt;BR /&gt;border-color: #BCBEC0;&lt;BR /&gt;box-shadow: 10px 10px 20px #888888;&lt;BR /&gt;padding: 5px;&lt;BR /&gt;margin-bottom: 15px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the template has been made and I use it on a page, I cannot take out the Rich Text box or change the styling on the indifividual box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 18:52:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36298#M3542</guid>
      <dc:creator>tlorang</dc:creator>
      <dc:date>2017-11-03T18:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36319#M3548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/8242"&gt;@tlorang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Try this CSS.&lt;/P&gt;&lt;PRE&gt;.videoresource &amp;gt; div:empty {
     display:none;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if above CSS want work than providing&amp;nbsp;us page URL&amp;nbsp; for better understanding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Team TRooInbound&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 10:04:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36319#M3548</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2017-11-04T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36335#M3553</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19200"&gt;@TRooInbound&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see where you are going with this but it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a link to a page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.letsgoaero.com/silent-towing-video-resources?hs_preview=IrjWNfyN-5419804654" target="_self"&gt;https://blog.letsgoaero.com/silent-towing-video-resources?hs_preview=IrjWNfyN-5419804654&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=422265&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=5418540902" target="_self"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=422265&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=5418540902&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 22:45:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36335#M3553</guid>
      <dc:creator>tlorang</dc:creator>
      <dc:date>2017-11-04T22:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36341#M3555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/8242"&gt;@tlorang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found there is some issue with targeting CSS&amp;nbsp;classes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please replace your code with below code&amp;nbsp; that will solve your problem.&lt;/P&gt;&lt;PRE&gt;.videoresource &amp;gt; div &amp;gt;  span.hs_cos_wrapper_type_rich_text {
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #bcbec0;
    box-shadow: 10px 10px 20px #888;
    padding: 5px;
    margin-bottom: 15px;
  display:block;
}

.videoresource &amp;gt; div &amp;gt;  span.hs_cos_wrapper_type_rich_text:empty {
  display:none
}&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Team TRooinbound&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 11:08:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36341#M3555</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2017-11-05T11:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36364#M3559</link>
      <description>&lt;P&gt;@hank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19200"&gt;@TRooInbound&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is amazing! It did the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not think to ad the&amp;nbsp;span.hs_cos_wrapper_type_rich_text&amp;nbsp; code, But now that I see it, it makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;BR /&gt;Tim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 05:25:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36364#M3559</guid>
      <dc:creator>tlorang</dc:creator>
      <dc:date>2017-11-06T05:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Styling for Div when no content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36365#M3560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/8242"&gt;@tlorang&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Cool, cheers&amp;nbsp;&lt;img id="heart" class="emoticon emoticon-heart" src="https://community.hubspot.com/i/smilies/16x16_heart.png" alt="Heart" title="Heart" /&gt;&lt;BR /&gt;more help please visit at&amp;nbsp;&lt;A href="https://www.trooinbound.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;www.trooinbound.com&lt;/A&gt;&amp;nbsp;or email at&amp;nbsp;&lt;A href="mailto:hello@trooinbound.com" target="_self" rel="nofollow noopener noreferrer"&gt;hello@trooinbound.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TRooInbound Team!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 06:39:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Disable-Styling-for-Div-when-no-content/m-p/36365#M3560</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2017-11-06T06:39:37Z</dc:date>
    </item>
  </channel>
</rss>

