<?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: How do you add a Custom CSS :hover class to a call to action in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-add-a-Custom-CSS-hover-class-to-a-call-to-action/m-p/199932#M7277</link>
    <description>&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_hubspot-button-accept-as-solution-gif-v00.gif" style="width: 300px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10050i6024F3877E1DFF1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="_hubspot-button-accept-as-solution-gif-v00.gif" alt="_hubspot-button-accept-as-solution-gif-v00.gif" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;Help other HubSpot searchers find this post quickly by accepting this solution today.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q&lt;/STRONG&gt;: How to add CSS properties to a :hover selector in the custom CSS field for a CTA??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short A&lt;/STRONG&gt;: You can't add CSS properties to CSS selectors in the custom CSS field for a CTA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Longer A&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;The custom CSS field in CTAs will accept many &lt;A href="https://www.w3schools.com/cssref/default.asp" target="_blank"&gt;CSS Properties&lt;/A&gt;. However, we haven't seen a successful implementation of &lt;A href="https://www.w3schools.com/cssref/css_selectors.asp" target="_blank"&gt;CSS Selectors&lt;/A&gt; being defined in this section and ':hover' is a CSS selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The recommended best practice is to either use an existing class or create a custom class for your CTA, then add your CSS properties to the custom class in your CSS stylesheet where the CTA is being used.&lt;BR /&gt;(see image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-design-default-stylesheets-gif.gif" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10806iAB3BC3D5E91383CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-design-default-stylesheets-gif.gif" alt="hubspot-design-default-stylesheets-gif.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help answer your question? If so, remember to accept this solution today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Frank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-solutions-signature-mfrankjohnson-v03.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10258i9C01B01250C2AC00/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-solutions-signature-mfrankjohnson-v03.png" alt="hubspot-solutions-signature-mfrankjohnson-v03.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mfrankjohnson.com/?utm_source=hs-forum" target="_blank"&gt;www.MFrankJohnson.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 09:47:02 GMT</pubDate>
    <dc:creator>MFrankJohnson</dc:creator>
    <dc:date>2018-07-31T09:47:02Z</dc:date>
    <item>
      <title>How do you add a Custom CSS :hover class to a call to action</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-add-a-Custom-CSS-hover-class-to-a-call-to-action/m-p/199906#M7276</link>
      <description>&lt;P&gt;I've made a cal to action using custom CSS&amp;nbsp;styling, but don't know how to give that&amp;nbsp;C2A a&amp;nbsp;:hover class in the custom CSS field for a call to action. Any Ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 07:46:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-add-a-Custom-CSS-hover-class-to-a-call-to-action/m-p/199906#M7276</guid>
      <dc:creator>si_entology</dc:creator>
      <dc:date>2018-07-31T07:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add a Custom CSS :hover class to a call to action</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-add-a-Custom-CSS-hover-class-to-a-call-to-action/m-p/199932#M7277</link>
      <description>&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_hubspot-button-accept-as-solution-gif-v00.gif" style="width: 300px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10050i6024F3877E1DFF1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="_hubspot-button-accept-as-solution-gif-v00.gif" alt="_hubspot-button-accept-as-solution-gif-v00.gif" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;Help other HubSpot searchers find this post quickly by accepting this solution today.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q&lt;/STRONG&gt;: How to add CSS properties to a :hover selector in the custom CSS field for a CTA??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short A&lt;/STRONG&gt;: You can't add CSS properties to CSS selectors in the custom CSS field for a CTA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Longer A&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;The custom CSS field in CTAs will accept many &lt;A href="https://www.w3schools.com/cssref/default.asp" target="_blank"&gt;CSS Properties&lt;/A&gt;. However, we haven't seen a successful implementation of &lt;A href="https://www.w3schools.com/cssref/css_selectors.asp" target="_blank"&gt;CSS Selectors&lt;/A&gt; being defined in this section and ':hover' is a CSS selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The recommended best practice is to either use an existing class or create a custom class for your CTA, then add your CSS properties to the custom class in your CSS stylesheet where the CTA is being used.&lt;BR /&gt;(see image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-design-default-stylesheets-gif.gif" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10806iAB3BC3D5E91383CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-design-default-stylesheets-gif.gif" alt="hubspot-design-default-stylesheets-gif.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help answer your question? If so, remember to accept this solution today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Frank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-solutions-signature-mfrankjohnson-v03.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10258i9C01B01250C2AC00/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-solutions-signature-mfrankjohnson-v03.png" alt="hubspot-solutions-signature-mfrankjohnson-v03.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mfrankjohnson.com/?utm_source=hs-forum" target="_blank"&gt;www.MFrankJohnson.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:47:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-add-a-Custom-CSS-hover-class-to-a-call-to-action/m-p/199932#M7277</guid>
      <dc:creator>MFrankJohnson</dc:creator>
      <dc:date>2018-07-31T09:47:02Z</dc:date>
    </item>
  </channel>
</rss>

