<?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 I want to change css flex variable based on variable number in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/759114#M32940</link>
    <description>&lt;P&gt;So I'm making a module, in that module I have an image and some text that are side by side using flexbox. I want people to be able to manipulate a module variable "center" to control the flex property between the two items. This is my code.&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;* {&lt;BR /&gt;box-sizing: border-box;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3{&lt;BR /&gt;margin: 5px;&lt;BR /&gt;max-width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side{&lt;BR /&gt;display: flex;&lt;BR /&gt;flex-wrap: wrap;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side .image{&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;flex: {{ module.center }};&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;margin: auto;&lt;BR /&gt;width: auto;&lt;BR /&gt;min-width: 100px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side .text{&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;flex: calc(100% - {{ module.center }});&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;padding: 0px 10px 15px 40px;&lt;BR /&gt;vertical-align: middle;&lt;BR /&gt;line-height: 1.5;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put this code in the html file so that the hubl variables should work, but it's not. Any tips on how to set the flex property based on module variables?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 18:10:04 GMT</pubDate>
    <dc:creator>IMckell</dc:creator>
    <dc:date>2023-02-21T18:10:04Z</dc:date>
    <item>
      <title>I want to change css flex variable based on variable number</title>
      <link>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/759114#M32940</link>
      <description>&lt;P&gt;So I'm making a module, in that module I have an image and some text that are side by side using flexbox. I want people to be able to manipulate a module variable "center" to control the flex property between the two items. This is my code.&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;* {&lt;BR /&gt;box-sizing: border-box;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3{&lt;BR /&gt;margin: 5px;&lt;BR /&gt;max-width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side{&lt;BR /&gt;display: flex;&lt;BR /&gt;flex-wrap: wrap;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side .image{&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;flex: {{ module.center }};&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;margin: auto;&lt;BR /&gt;width: auto;&lt;BR /&gt;min-width: 100px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.module-container3 .side-by-side .text{&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;flex: calc(100% - {{ module.center }});&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;padding: 0px 10px 15px 40px;&lt;BR /&gt;vertical-align: middle;&lt;BR /&gt;line-height: 1.5;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put this code in the html file so that the hubl variables should work, but it's not. Any tips on how to set the flex property based on module variables?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 18:10:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/759114#M32940</guid>
      <dc:creator>IMckell</dc:creator>
      <dc:date>2023-02-21T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: I want to change css flex variable based on variable number</title>
      <link>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/759423#M32944</link>
      <description>&lt;P&gt;Check this out I believe your answer lies in this article. -&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:39:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/759423#M32944</guid>
      <dc:creator>hgibson2</dc:creator>
      <dc:date>2023-02-22T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: I want to change css flex variable based on variable number</title>
      <link>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/761242#M32986</link>
      <description>&lt;P&gt;If that has not solved your issue here is another,&amp;nbsp;&lt;A href="https://famewide.com/" target="_blank"&gt;https://famewide.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:21:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/I-want-to-change-css-flex-variable-based-on-variable-number/m-p/761242#M32986</guid>
      <dc:creator>hgibson2</dc:creator>
      <dc:date>2023-02-27T05:21:59Z</dc:date>
    </item>
  </channel>
</rss>

