<?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: Setting Responsive Font Size using CSS Style in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909429#M74964</link>
    <description>&lt;P&gt;ok i'm not using a multi kpi&lt;/P&gt;
&lt;P&gt;I only use multi kpi for the css style , but there is no KPI to display&lt;/P&gt;
&lt;P&gt;i use a text/image object and i want to modify the size of the text using css style (thank to the multi kpi)&lt;/P&gt;
&lt;P&gt;Thank for your differents returns&lt;/P&gt;
&lt;P&gt;See u&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 14:32:34 GMT</pubDate>
    <dc:creator>ALEX1977ALEX</dc:creator>
    <dc:date>2022-03-24T14:32:34Z</dc:date>
    <item>
      <title>Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1874582#M72124</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am using four different Simple KPI objects to represent some values on the same sheet. I had to unflag the "Responsive Size" option because I want all the fonts to have the same size regardless of the space available.&lt;/P&gt;
&lt;P&gt;However, when I use the app in small screens, the KPIs are not completely visible and I have to use the scrollbar in order to see them. I tried to use the CSS Style in order to set the font size as a percentage, here below my code:&lt;/P&gt;
&lt;PRE class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;&amp;amp; .value *{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;font-size: 90%; !important;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;amp; .label *{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;font-size: 90%; !important;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;This code doesn't work as expected, it sets all the fonts to the same dimension but they do not change with respect to the available space. I would like to know if there is a way to set all the fonts to the same dimension but also responsive to the available space in the sheet.&lt;/P&gt;
&lt;P&gt;Thank you very much,&lt;/P&gt;
&lt;P&gt;Tommaso&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 09:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1874582#M72124</guid>
      <dc:creator>tommaso26</dc:creator>
      <dc:date>2021-12-23T09:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909365#M74958</link>
      <description>&lt;P&gt;Hello Tommaso&lt;/P&gt;
&lt;P&gt;Do you solve this issue ?. i'm facing right now with the same issue&lt;/P&gt;
&lt;P&gt;But to my mind like we are on responsive tool , we can't force the size of the font&lt;/P&gt;
&lt;P&gt;Thank&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909365#M74958</guid>
      <dc:creator>ALEX1977ALEX</dc:creator>
      <dc:date>2022-03-24T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909378#M74959</link>
      <description>&lt;P&gt;Hello Alex,&lt;/P&gt;
&lt;P&gt;I managed to solve the issue using the Viewport dimensions for CSS (&lt;A href="https://www.w3schools.com/cssref/css_units.asp" target="_blank"&gt;https://www.w3schools.com/cssref/css_units.asp&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;For example, if you want to set the size of a KPI's value and label, you can use the following code with Viewport dimensions:&lt;/P&gt;
&lt;P&gt;&amp;amp; .value *{&lt;BR /&gt;font-size: 3.5vmin; !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;amp; .label *{&lt;BR /&gt;font-size: 1.5 vmin; !important;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tommaso&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909378#M74959</guid>
      <dc:creator>tommaso26</dc:creator>
      <dc:date>2022-03-24T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909410#M74961</link>
      <description>&lt;P&gt;Hello Tommaso&lt;/P&gt;
&lt;P&gt;Is this the way to do to it?&lt;/P&gt;
&lt;P&gt;div[tid="kPpdyjK"] .value *{&lt;BR /&gt;font-size: 9.5 vmin; !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;amp; .label *{&lt;BR /&gt;font-size: 6.5 vmin; !important;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909410#M74961</guid>
      <dc:creator>ALEX1977ALEX</dc:creator>
      <dc:date>2022-03-24T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909419#M74963</link>
      <description>&lt;P&gt;Hello Alex,&lt;/P&gt;
&lt;P&gt;you can write it in different ways depending on your needs. Look at&amp;nbsp;&lt;A href="https://www.w3schools.com/cssref/css_units.asp" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.w3schools.com/cssref/css_units.asp&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;for more info.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tommaso26_0-1648131718582.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75271iE95F465D52496350/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tommaso26_0-1648131718582.png" alt="tommaso26_0-1648131718582.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Where "vmin" is relative to 1% of the viewport's smaller dimension.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tommaso&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909419#M74963</guid>
      <dc:creator>tommaso26</dc:creator>
      <dc:date>2022-03-24T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Responsive Font Size using CSS Style</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909429#M74964</link>
      <description>&lt;P&gt;ok i'm not using a multi kpi&lt;/P&gt;
&lt;P&gt;I only use multi kpi for the css style , but there is no KPI to display&lt;/P&gt;
&lt;P&gt;i use a text/image object and i want to modify the size of the text using css style (thank to the multi kpi)&lt;/P&gt;
&lt;P&gt;Thank for your differents returns&lt;/P&gt;
&lt;P&gt;See u&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Responsive-Font-Size-using-CSS-Style/m-p/1909429#M74964</guid>
      <dc:creator>ALEX1977ALEX</dc:creator>
      <dc:date>2022-03-24T14:32:34Z</dc:date>
    </item>
  </channel>
</rss>

