# Icon Sizing

**URL:** <https://forum.radzen.com/t/icon-sizing/4517>\
**Category:** Angular\
**Created:** [August 3, 2020, 8:30pm UTC](https://forum.radzen.com/t/icon-sizing/4517 "2020-08-03T20:30:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mumfie](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@mumfie](https://forum.radzen.com/u/mumfie)\
**Post date:** [August 3, 2020, 8:30pm UTC](https://forum.radzen.com/t/icon-sizing/4517/1 "2020-08-03T20:30:36Z")

</div>

Hi Radzen,  
**Angular 2.5.1.3**

We are using a button with icon only to access field-specific help. The button is used as it provides tooltips, click event, etc.

We wish to make the icon larger but have not been able to find how to do it without resorting to custom css.

The general tab icon and link components do appear to resize by increasing the font size in all themes we have tested.

Using the General tab button does appear to work with some themes.

E.G.

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/01f0588e677acc12af127da7c71e74f73e082b8f.png)  
However, with later themes using identical component properties the icon will not resize.

E.G

 ![image](https://forum.radzen.com/uploads/default/original/2X/6/6ca7b0fd08d28f82b5d8273db44d92c46b19a734.png)

Any ideas?  
Have attached sample screen  
[icon-samples.zip](https://forum.radzen.com/uploads/short-url/6nI6iupjisiuO4YzFLFdPcDcqq4.zip) (743 Bytes)

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 4, 2020, 1:06pm UTC](https://forum.radzen.com/t/icon-sizing/4517/2 "2020-08-04T13:06:19Z")

</div>

Indeed those themes will not scale the icon size depending on the button font size. You can add this CSS snippet to the styles.css file of your application to allow that:

```auto
.ui-button-md .pi {
    font-size: 1.0625em;
    line-height: 2.1875em;
    width: 1.25em;
    font-size: 1.0625em;
}

```

Then setting the font-size of the button should affect the icon as well.

---

<div class="post-metadata">

**Author:** ![mumfie](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@mumfie](https://forum.radzen.com/u/mumfie)\
**Post date:** [August 4, 2020, 4:46pm UTC](https://forum.radzen.com/t/icon-sizing/4517/3 "2020-08-04T16:46:14Z")

</div>

Thanks @korchev  
That works great

 ![image](https://forum.radzen.com/uploads/default/original/2X/e/e5cb2127909d3a8ed019c00325ad67b7aa1b7419.png)
