I canot set the width

I canot set the width

I am having an element

html

  1. <a class="icon-right"></a>

css

  1. *{
  2. border-sizing:border-box;
  3. }

  4. a.icon-right{
  5. display:inline-block;
  6. height:90%;
  7. vertical-align:middle;
  8. }

jquery

  1. var $iconH = $('.icon-right').height();
  2. $('.icon-right').width( $iconH );

  3. //  test to see -->
  4. $('.test').text($iconH);

I get

  1. <span class="test">90</span>


If I look into Chrome webdev tools I get the final values -->
.icon-right  w=92px  h=66px 

with test.text I get 90 and the width = 66 !

what can be wrong in my code ?

thanks for helping