This is a migrated thread and some comments may be shown as answers.
Use "rem" (root em) instead of "em" not possible?
3 Answers 3 Views
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 26 Apr 2020, 02:17 PM

Hi guys, is there a way to use "rem" instead of "em" on the controls? Using "rem" gives a build error ...

Thanks, Tom

3 Answers, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 29 Apr 2020, 04:58 PM

Hi Tom,

Thank you for this interesting question!

Generally, on the server-side 'Rem' units cannot be used with Telerik Controls. Telerik Controls use the .NET UnitType Enumeration which does not include 'Rem', see UnitType Enum.

You can use 'Rem' on the client-side by implementing custom CSS or JavaScript.

It would be helpful if you share more about the scenario you have and the error message you get.

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Thomas
Top achievements
Rank 1
answered on 06 May 2020, 04:22 PM

Hi Doncho,

no error message. Just wanted to know id it is possible. Would be nice if it works because it would be more consistent for me. But it is not a big deal, em was here before and didn't do any harm :-)

Cheers, Tom

0
Doncho
Telerik team
answered on 08 May 2020, 05:28 PM

Hi Thomas,

Although it may be nice to have, it is still not supported. Based on the experience with the related questions by clients, the most frequently used units are pixels and percentages, Em comes after, and questions for Rem have been asked really rare.

I hope you will find the approach that fits best with your needs.

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
Thomas
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or