<?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: Nirmal Perera</title>
    <description>The latest articles on DEV Community by Nirmal Perera (@nirmal_perera_bdad62c5c3d).</description>
    <link>https://dev.to/nirmal_perera_bdad62c5c3d</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%2F1798390%2F9c6b2e6a-577d-405a-9498-173bb43f88e0.png</url>
      <title>DEV Community: Nirmal Perera</title>
      <link>https://dev.to/nirmal_perera_bdad62c5c3d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nirmal_perera_bdad62c5c3d"/>
    <language>en</language>
    <item>
      <title>Idea to adding a feature for CSS</title>
      <dc:creator>Nirmal Perera</dc:creator>
      <pubDate>Thu, 18 Jul 2024 00:17:38 +0000</pubDate>
      <link>https://dev.to/nirmal_perera_bdad62c5c3d/idea-to-adding-a-feature-for-css-12h3</link>
      <guid>https://dev.to/nirmal_perera_bdad62c5c3d/idea-to-adding-a-feature-for-css-12h3</guid>
      <description>&lt;p&gt;i feel like if we had an option in css to get the width of an element&lt;/p&gt;

&lt;h2&gt;
  
  
  example.css
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root{
    --btnWidth: getWidth('#sourceEl');
               and / or
    --btnWidth: getWidth('.sourceEl');

}
.targetEl{
    width: var(--btnWidth);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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