title: jQuery add padding-right with width of a child element
body: <p>I need to add padding-right css with width from a child element. This is how I think it to do:</p>
  
  <p>jQuery</p>
  
  <pre><code>$('.parent_element').css('padding-right', $(this).children('.child_element').width() + 'px');
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;a href="#" class="parent_element"&gt;&lt;i class="fa"&gt;&lt;/i&gt; Example &lt;span class="child_element"&gt;101&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But it doesn't add this css to the parent element.</p>