<?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: Targeting a form field with a CSS declaration in GDPR</title>
    <link>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61771#M136</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2017 11:59:11 GMT</pubDate>
    <dc:creator>JEG</dc:creator>
    <dc:date>2017-12-06T11:59:11Z</dc:date>
    <item>
      <title>Targeting a form field with a CSS declaration</title>
      <link>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61728#M134</link>
      <description>&lt;P&gt;As part of looming GDPR, we have to record the Consent Statement the visitors have given consent to. I want to pre-populate a form field with the statement and record the field within the contact property list.&lt;BR /&gt;However, the statement is not pleasing to the eye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I want to be able to change just GDPR Statement field CSS styling with {height: 80px; background: #ff42ce;}.&lt;BR /&gt;Apparently, I can target the selector, ".hbspt-forms-0.0:$8.$gdpr_statement.$gdpr_statement" and then apply a CSS declaration, but I can't get it to work!&lt;/P&gt;&lt;P&gt;What would be the exact CSS declaration and where would I put it?&lt;BR /&gt;In the 'Page Settings - Edit Head HTML', 'Template - Custom Inline Styling', or the 'style.css'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Form details:&lt;BR /&gt;Label=GDPR Statement1&lt;BR /&gt;name="gdpr_statement"&lt;BR /&gt;data-reactid=".hbspt-forms-1.0:$8.$gdpr_statement.0"&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 09:02:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61728#M134</guid>
      <dc:creator>JEG</dc:creator>
      <dc:date>2017-12-06T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Targeting a form field with a CSS declaration</title>
      <link>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61767#M135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20494"&gt;@JEG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per I understand&amp;nbsp;about your query, you looking for CSS Style targets for a label, input &lt;SPAN&gt;field&lt;/SPAN&gt;, and other things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CSS targets for form fields,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Label:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;.hs_firstname &amp;gt;&amp;nbsp;label&amp;nbsp; {height: 80px; background: #ff42ce;}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="safasf.PNG" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/6793i22555C9289D5F963/image-size/medium?v=v2&amp;amp;px=400" role="button" title="safasf.PNG" alt="safasf.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you have to&amp;nbsp;replace your&amp;nbsp;GDPR Statement&amp;nbsp;field class with 'hs_firstname' or you are unable&amp;nbsp;to find this from inspecting element of the browser share page URL and I will give you direct CSS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&amp;nbsp; Target&amp;nbsp;with a name attribute,&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[name = "gdpr_statement"] { &lt;BR /&gt;    height: 80px; background: #ff42ce; &lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;for putting CSS,&lt;/P&gt;&lt;P&gt;we prefer&amp;nbsp;to add this in &lt;STRONG&gt;style.css&lt;/STRONG&gt; but you can add this to&amp;nbsp;your flexibility&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding CSS to&amp;nbsp;Edit Head HTML you have to write CSS in &amp;lt;style&amp;gt; tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;style&amp;gt;
[name = "gdpr_statement"] { 
    height: 80px; background: #ff42ce; 
}
&amp;lt;/style&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did my post help answer your query? Help the Community by &lt;STRONG&gt;marking it as a solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Team TRooInbound&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:47:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61767#M135</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2017-12-06T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Targeting a form field with a CSS declaration</title>
      <link>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61771#M136</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:59:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/61771#M136</guid>
      <dc:creator>JEG</dc:creator>
      <dc:date>2017-12-06T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Targeting a form field with a CSS declaration</title>
      <link>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/188182#M137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20494"&gt;@JEG&lt;/a&gt;&amp;nbsp;is there any chance you could share the end result of adding the GDPR css?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 11:25:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Targeting-a-form-field-with-a-CSS-declaration/m-p/188182#M137</guid>
      <dc:creator>Jenr</dc:creator>
      <dc:date>2018-05-02T11:25:38Z</dc:date>
    </item>
  </channel>
</rss>

