<?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 Re: Help requested with css first-child problem in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206881#M8260</link>
    <description>&lt;P&gt;Will do, and thanks again for jumping in. I will also have to have a look at live editor.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 22:15:31 GMT</pubDate>
    <dc:creator>Pixelwerx</dc:creator>
    <dc:date>2018-09-13T22:15:31Z</dc:date>
    <item>
      <title>Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206764#M8253</link>
      <description>&lt;P&gt;Hi, my name is Oliver, this is my first post, and I've only been using HubSpot for 2 months now. I want to say this forum is really helpful, a lot of really smart people on here. While I do have some HTML, CSS and JavaScript experience, I am by no means a developer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building out a template with a flexible column sidebar, and custom modules for each sidebar section. I've got them all good, except the video section. The problem I have is that the first iteration of a video should not have the grey top border. I had it working at one point with a certain layout of div's, span's etc. But the video links didn't work. So now I've got everything working except the first-child code. Here is a link to the page as it currently stands: &lt;A href="http://westech-dev-4871855-4871855.hs-sites.com/rapisand-plus-treatment-for-high-solids-waters-1?hs_preview=xbkdQCIe-6169939527" target="_blank"&gt;http://westech-dev-4871855-4871855.hs-sites.com/rapisand-plus-treatment-for-high-solids-waters-1?hs_preview=xbkdQCIe-6169939527&lt;/A&gt;. I have tried too many permutations of the css in question () to mention. Here is the css in it's original state:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.row-fluid .pro-vidlist &amp;gt; span &amp;gt; div:first-child a.video-popup { border-top:0; margin:0; }&lt;/PRE&gt;&lt;P&gt;Now here is my HTML/HubL:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="pro-videobox pro-videobox1"&amp;gt;
 	&amp;lt;div class="side-title-style"&amp;gt;
    &amp;lt;span&amp;gt;
   		{% inline_rich_text field="video_sec_title" value="{{ module.video_sec_title }}" %}
    &amp;lt;/span&amp;gt;
  &amp;lt;/div&amp;gt;
  {% for item in module.video_link_group %}
  &amp;lt;div&amp;gt;
    &amp;lt;span&amp;gt;
      &amp;lt;div class="product-videos-list pro-vidlist"&amp;gt;
				&amp;lt;a class="video-popup" data-url="{{ item.vid_link }}" data-type="swf" href="javascript&amp;amp;colon;void(0);"&amp;gt;  
    			&amp;lt;span class="aside-image"&amp;gt;
      		&amp;lt;span class="sprite"&amp;gt;&amp;lt;/span&amp;gt;
      			&amp;lt;img class="video-image" src=""&amp;gt;
      		&amp;lt;/span&amp;gt;
      		&amp;lt;span&amp;gt;
      			&amp;lt;div class="video-text"&amp;gt;{{ item.link_title }}&amp;amp;nbsp;&amp;amp;nbsp;›&amp;lt;/div&amp;gt;
      		&amp;lt;/span&amp;gt;
    		&amp;lt;/a&amp;gt;
    		&amp;lt;div class="video-content" style="display: none"&amp;gt;
       		&amp;lt;iframe src="{{ item.resource_link }}" width="550" height="350" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt; 
    		&amp;lt;/div&amp;gt;
    	&amp;lt;/div&amp;gt;
    &amp;lt;/span&amp;gt;
  &amp;lt;/div&amp;gt;
  {% endfor %}
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;And here is the full css:&lt;/P&gt;&lt;PRE&gt;.row-fluid .side-title-style h3 { font-size:18px; line-height:25px; color:#2a3542; border-bottom:6px solid #f57b20; padding:0 0 10px; margin-bottom:10px; }
.row-fluid .pro-videobox { overflow:hidden; background-color:#fff; padding:20px; margin-bottom:15px; -webkit-box-shadow:#d4d5d6 0px 1px 1px; -moz-box-shadow:#d4d5d6 0px 1px 1px; box-shadow:#d4d5d6 0px 1px 1px; }
.row-fluid .pro-videobox .aside-image { float:left; position:relative; margin:5px 8px 0 0; }
.row-fluid .pro-videobox .aside-image span { position:absolute; display:block; width:12px; height:15px; top:50%; left:50%; margin:-7px 0 0 -6px; background-position:-57px -36px; }
.row-fluid .pro-videobox .video-image { width:95px; height:63px; }
.row-fluid .pro-videobox .video-text { font-size:16px; color:#ef7a1f; line-height:18px; }
.row-fluid .pro-vidraw &amp;gt; span &amp;gt; div:last-child { margin-bottom:0; }
.row-fluid .pro-vidraw &amp;gt; span &amp;gt; div .video-text { margin-top:5px; }*/
.row-fluid .pro-videobox1 a.video-popup { float:left; width:100%; margin:15px 0 0; padding-top:15px; border-top:1px solid #c5c5c6; }
.row-fluid .pro-videobox1 .video-text { font-size:15px; line-height:20px; margin-top:1px; }

.row-fluid .pro-vidlist &amp;gt; span &amp;gt; div:first-child a.video-popup { border-top:0; margin:0; }

@media (min-width: 768px) and (max-width: 991px){
  .row-fluid .pro-videobox { text-align:left !important; }
  .row-fluid .pro-videobox .aside-image { width:100%; margin:0 0 15px; }
	.row-fluid .pro-videobox .video-image { width:100%; height:auto; }
}&lt;/PRE&gt;&lt;P&gt;And there is some JavaScript to pull the video thumbnail and make the video popup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any suggestions, it would be really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:47:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206764#M8253</guid>
      <dc:creator>Pixelwerx</dc:creator>
      <dc:date>2018-09-13T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206833#M8255</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/70187"&gt;@Pixelwerx&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you aren't correctly targeting the &amp;lt;a&amp;gt; tag in question:&lt;/P&gt;
&lt;PRE&gt;.row-fluid .pro-vidlist a.video-popup:first-child { border-top:0; margin:0; }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help? &lt;A href="https://www.upwork.com/o/companies/_~0124e15ff34efb3871/" target="_blank" rel="noopener"&gt;Hire Us Here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 09:48:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206833#M8255</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2019-05-31T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206852#M8257</link>
      <description>&lt;P&gt;Thank you for replying so quickly. I wasn't able to make it work with that CSS syntax change, but I eventually did get it to work by&amp;nbsp;making the following change&amp;nbsp;to the HTML/HubL. It's just where the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% for item in module.video_link_group %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;got placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="pro-videobox pro-videobox1"&amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;div class="side-title-style"&amp;gt;
      &amp;lt;span&amp;gt;
   	 &amp;lt;h3&amp;gt;{% inline_rich_text field="video_sec_title" value="{{ module.video_sec_title }}" %}&amp;lt;/h3&amp;gt;
      &amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;div class="product-videos-list pro-vidlist"&amp;gt;
      &amp;lt;span&amp;gt;
        {% for item in module.video_link_group %}
        &amp;lt;div&amp;gt;
          &amp;lt;a class="video-popup" data-url="{{ item.vid_link }}" data-type="swf" href="javascript&amp;amp;colon;void(0);"&amp;gt;  
            &amp;lt;span class="aside-image"&amp;gt;
            &amp;lt;span class="sprite"&amp;gt;&amp;lt;/span&amp;gt;
              &amp;lt;img class="video-image" src=""&amp;gt;
            &amp;lt;/span&amp;gt;
            &amp;lt;div class="video-text"&amp;gt;{{ item.link_title }}&amp;amp;nbsp;&amp;amp;nbsp;›&amp;lt;/div&amp;gt;
          &amp;lt;/a&amp;gt;
          &amp;lt;div class="video-content" style="display: none"&amp;gt;
          &amp;lt;iframe src="{{ item.vid_link }}" width="550" height="350" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt; 
   	&amp;lt;/div&amp;gt;
       &amp;lt;/div&amp;gt;
      {% endfor %}
      &amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:59:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206852#M8257</guid>
      <dc:creator>Pixelwerx</dc:creator>
      <dc:date>2018-09-13T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206880#M8259</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/70187"&gt;@Pixelwerx&lt;/a&gt;, Good! I looked at your code in my inspector and your path didn't line up with the order of the elements.&amp;nbsp; I have this nifty chrome extension called &lt;A href="https://chrome.google.com/webstore/detail/live-editor-for-css-less/ifhikkcafabcgolfjegfcgloomalapol?hl=en" target="_self"&gt;live editor&lt;/A&gt;&amp;nbsp;that automatically applies any css you write to the page. I don't use it as often as you might think but it is great for these types of situations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you solved it make sure to mark yours as the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help? &lt;A href="https://www.upwork.com/o/companies/_~0124e15ff34efb3871/" target="_blank" rel="noopener"&gt;Hire Us Here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 09:48:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206880#M8259</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2019-05-31T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206881#M8260</link>
      <description>&lt;P&gt;Will do, and thanks again for jumping in. I will also have to have a look at live editor.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 22:15:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/206881#M8260</guid>
      <dc:creator>Pixelwerx</dc:creator>
      <dc:date>2018-09-13T22:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/207155#M8277</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;- Just installed live editor, thanks for the tip, I think it will help when debugging psuedo selectors most since chrome inspector freaks out sometimes when you attempt to add a new style definition for :after and :before&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 09:57:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/207155#M8277</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-09-15T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help requested with css first-child problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/207327#M8292</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;, glad you like it. I am considering creating a "share your work" post to layout all of the tools I use/have used over the years. It might be a mile long but I think it would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;**EDIT: I did that -&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Share-Your-Work/Developers-Tools-Cheat-Sheet" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/Share-Your-Work/Developers-Tools-Cheat-Sheet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help? &lt;A href="https://www.upwork.com/o/companies/_~0124e15ff34efb3871/" target="_blank" rel="noopener"&gt;Hire Us Here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 09:49:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-requested-with-css-first-child-problem/m-p/207327#M8292</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2019-05-31T09:49:43Z</dc:date>
    </item>
  </channel>
</rss>

