<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ThajudeenKT</title>
    <description>The latest articles on DEV Community by ThajudeenKT (@thajudeenkt).</description>
    <link>https://dev.to/thajudeenkt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F790139%2F4d9f7418-e86d-48d2-94a0-5c0591055301.jpeg</url>
      <title>DEV Community: ThajudeenKT</title>
      <link>https://dev.to/thajudeenkt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thajudeenkt"/>
    <language>en</language>
    <item>
      <title>I need to reduce or alter the font size of parent class based on the font size of span tag inside child class</title>
      <dc:creator>ThajudeenKT</dc:creator>
      <pubDate>Tue, 11 Jan 2022 09:42:48 +0000</pubDate>
      <link>https://dev.to/thajudeenkt/i-need-to-reduce-or-alter-the-font-size-of-parent-class-based-on-the-font-size-of-span-tag-inside-child-class-4kod</link>
      <guid>https://dev.to/thajudeenkt/i-need-to-reduce-or-alter-the-font-size-of-parent-class-based-on-the-font-size-of-span-tag-inside-child-class-4kod</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="heading"&amp;gt;
  &amp;lt;p&amp;gt;Hero&amp;lt;br&amp;gt;
&amp;lt;span style="font-size:20px;"&amp;gt;Banner&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;
Text&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.heading {
  font-size: 8.4rem;
  line-height: 7.56rem;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const elements = document.body.querySelectorAll("*[style]")
elements.forEach(element=&amp;gt;{
 if(element.style.fontSize){
   const {value: size, unit} = element.attributeStyleMap.get('font-size')
   element.attributeStyleMap.set('line-height', CSS[unit](Math.floor(size * (8.4/7.56))))
   }
   })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here I can remove only the space below the span tag but not the space above the span tag. Please help to remove the same&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
