<?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 How to add CSS to Form? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190287#M6027</link>
    <description>&lt;P&gt;Hi, how to overwrite the css on my form?, I followed the tutorials but not working,&amp;nbsp; this is my code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&amp;gt;
    &amp;lt;title&amp;gt;Test&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
        .hs-form input[type="text"] {
            background: #FFF222 !important;
        }

        .hs-button-reset,
        .hs-form .hs-button {
            background: #FFF222;
            border: none;
            font-family: Helvetica, Arial, sans-serif;
            line-height: 1;
            margin: 0;
            outline: 0;
            padding: 0;

        }

    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "4566994",
	formId: "c0179cbd-fd03-4d55-a416-b85e189cbe4d",
        css:""
});
&amp;lt;/script&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;I follow&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/forms/how-do-i-remove-the-default-styling-from-hubspot-forms" target="_self"&gt;this article&lt;/A&gt;&amp;nbsp;but not showing the checkbox&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Include default styling.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm doing something wrong?&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 May 2018 04:38:25 GMT</pubDate>
    <dc:creator>manuelmdn</dc:creator>
    <dc:date>2018-05-17T04:38:25Z</dc:date>
    <item>
      <title>How to add CSS to Form?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190287#M6027</link>
      <description>&lt;P&gt;Hi, how to overwrite the css on my form?, I followed the tutorials but not working,&amp;nbsp; this is my code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&amp;gt;
    &amp;lt;title&amp;gt;Test&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
        .hs-form input[type="text"] {
            background: #FFF222 !important;
        }

        .hs-button-reset,
        .hs-form .hs-button {
            background: #FFF222;
            border: none;
            font-family: Helvetica, Arial, sans-serif;
            line-height: 1;
            margin: 0;
            outline: 0;
            padding: 0;

        }

    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "4566994",
	formId: "c0179cbd-fd03-4d55-a416-b85e189cbe4d",
        css:""
});
&amp;lt;/script&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;I follow&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/forms/how-do-i-remove-the-default-styling-from-hubspot-forms" target="_self"&gt;this article&lt;/A&gt;&amp;nbsp;but not showing the checkbox&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Include default styling.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm doing something wrong?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 May 2018 04:38:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190287#M6027</guid>
      <dc:creator>manuelmdn</dc:creator>
      <dc:date>2018-05-17T04:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CSS to Form?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190317#M6034</link>
      <description>&lt;P&gt;I checked the forms on my portal. When you go to contacts -&amp;gt; forms in your Hubspot portal, then click 'action' next to a form and choose 'embed form' a popup appears with the embed code. below the code is the check box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you using embeds on an external site or a hubspot hosted site?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:30:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190317#M6034</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2018-05-17T12:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CSS to Form?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190325#M6036</link>
      <description>&lt;P&gt;Indeed go to the form &amp;gt; actions &amp;gt; embed code and add the lines from the example as well if they are not there:&lt;/P&gt;&lt;!--   [if lte IE 8]&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;script charset=&amp;amp;amp;quot;utf-8&amp;amp;amp;quot; type=&amp;amp;amp;quot;text/javascript&amp;amp;amp;quot; src=&amp;amp;amp;quot;//js.hsforms.net/forms/v2-legacy.js&amp;amp;amp;quot;&amp;amp;amp;gt;&amp;amp;amp;amp;lt;/script&amp;amp;amp;amp;gt;
&amp;amp;amp;lt;![endif]   --&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "#",
	formId: "#",
        submitButtonClass: '#',
        css: ' ',
        cssClass: '#',
});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;Portal and form Id are already filled in.&lt;/P&gt;&lt;P&gt;SubmitButtonClass: add the class of the button&lt;/P&gt;&lt;P&gt;css: '' makes sure that the default css is disabled&lt;/P&gt;&lt;P&gt;cssClass: add 1 class (2 won't work is my experience, but if you succeed please let me know).&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 13:08:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190325#M6036</guid>
      <dc:creator>aniek_2</dc:creator>
      <dc:date>2018-05-17T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CSS to Form?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190674#M6069</link>
      <description>&lt;P&gt;Thank you so much!&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;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 18:54:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/190674#M6069</guid>
      <dc:creator>manuelmdn</dc:creator>
      <dc:date>2018-05-18T18:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CSS to Form?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/781031#M33773</link>
      <description>&lt;P&gt;I am having issue that it's show&amp;nbsp;&lt;BR /&gt;"[]Unsupported context key: className"&lt;BR /&gt;&lt;BR /&gt;I am passing down className as a prop into&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cssClass&lt;/PRE&gt;&lt;P&gt;as there are a few forms sharing the same script with different styling and form Id&lt;BR /&gt;&lt;BR /&gt;Do you know what may cause the issue?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:53:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-CSS-to-Form/m-p/781031#M33773</guid>
      <dc:creator>MWang9</dc:creator>
      <dc:date>2023-04-12T17:53:27Z</dc:date>
    </item>
  </channel>
</rss>

