<?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 Lead Form Defaults to Left Align in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/623768#M7464</link>
    <description>&lt;P&gt;I embedded a lead form onto a Shopify website and the form defaults to a left alignment, I would like it to be centered. I had developers look into this and they said HubSpot would need to fix this since the embedded code HubSpot provides is a shortened version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code provided by HubSpot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&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;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;region: "na1",&lt;BR /&gt;portalId: "8726632",&lt;BR /&gt;formId: "8decf7de-5001-4d11-af43-102d8a8f301d"&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 14:20:56 GMT</pubDate>
    <dc:creator>KMcKeever</dc:creator>
    <dc:date>2023-04-26T14:20:56Z</dc:date>
    <item>
      <title>Lead Form Defaults to Left Align</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/623768#M7464</link>
      <description>&lt;P&gt;I embedded a lead form onto a Shopify website and the form defaults to a left alignment, I would like it to be centered. I had developers look into this and they said HubSpot would need to fix this since the embedded code HubSpot provides is a shortened version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code provided by HubSpot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&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;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;region: "na1",&lt;BR /&gt;portalId: "8726632",&lt;BR /&gt;formId: "8decf7de-5001-4d11-af43-102d8a8f301d"&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:20:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/623768#M7464</guid>
      <dc:creator>KMcKeever</dc:creator>
      <dc:date>2023-04-26T14:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lead Form Defaults to Left Align</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/624083#M7465</link>
      <description>&lt;P&gt;If you just want the form to be aligned center to the page, ask your developers to add this to the CSS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;div#hbspt-form-1651178357416-6542616659 {
    display: flex;
    justify-content: center;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to center it on the page and center the text:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;div#hbspt-form-1651178357416-6542616659 {
    display: flex;
    justify-content: center;
    text-align: center;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you need to center the button too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.actions {
    display: flex;
    justify-content: center;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 20:50:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/624083#M7465</guid>
      <dc:creator>LizaMischel</dc:creator>
      <dc:date>2022-04-28T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lead Form Defaults to Left Align</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/624156#M7466</link>
      <description>&lt;P&gt;A few things here. &amp;nbsp;First, you are using Hubspot to style your form. If you click on Style &amp;amp; Preview in your form setup, you will have the option to Set as Raw HTML. &amp;nbsp;If you do that, Hubspot will remove all styling and you can use your CSS on page for styling. &amp;nbsp;This could allow your developers to do what they want with the form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regards to "centering" your form is centered with left aligned text. If you want to override the text labels and typing within the form fields you can do this within CSS, but depending on what you want to do it may be easier to use the Raw HTML option as opposed to trying to override the styles of Hubspot. Also note that your form has a max width of 590 pixels set to it (see image below). If you override that in your CSS to be 100% it will expand to the full width of 750px that you have set for your container.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-04-28 at 7.01.55 PM.png" style="width: 550px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/65139iC67D76239054924A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-28 at 7.01.55 PM.png" alt="Screen Shot 2022-04-28 at 7.01.55 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 23:02:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/624156#M7466</guid>
      <dc:creator>Ben_M</dc:creator>
      <dc:date>2022-04-28T23:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lead Form Defaults to Left Align</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/631722#M7508</link>
      <description>&lt;P&gt;Where should that be added in the raw HTML?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&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;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;region: "na1",&lt;BR /&gt;portalId: "8726632",&lt;BR /&gt;formId: "4595dbc5-bede-4beb-9d38-a0a05b87eeb4"&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:55:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/631722#M7508</guid>
      <dc:creator>KMcKeever</dc:creator>
      <dc:date>2022-05-12T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lead Form Defaults to Left Align</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/631726#M7509</link>
      <description>&lt;P&gt;The raw html option is also left aligning. This is the raw code from hubspot. Is there a way to update this code below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&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;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;region: "na1",&lt;BR /&gt;portalId: "8726632",&lt;BR /&gt;formId: "4595dbc5-bede-4beb-9d38-a0a05b87eeb4"&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:58:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Lead-Form-Defaults-to-Left-Align/m-p/631726#M7509</guid>
      <dc:creator>KMcKeever</dc:creator>
      <dc:date>2022-05-12T12:58:53Z</dc:date>
    </item>
  </channel>
</rss>

