This is a migrated thread and some comments may be shown as answers.

How do you make the star icons smaller?

1 Answer 169 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Veteran
Stephen asked on 19 Dec 2020, 04:01 AM
We're using the jQuery rating with Bootstrap theme. The default star icons are huge. How do you make them look smaller and with less spacing in between? I tried using css to override the font-size but it gets weird when you have half precision values. The half stars look shifted.

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 22 Dec 2020, 05:18 PM

Hello Stephen,

You can reduce the size of the icons with the following CSS rule:

.k-rating-container .k-rating-item .k-icon {
  font-size: 18px;
}

Here's a dojo example with this rule applied: https://dojo.telerik.com/ihAtiTEj

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Rating
Asked by
Stephen
Top achievements
Rank 1
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or