function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shilpa Goyal 9Shilpa Goyal 9 

Stars not showing properly

Hello evryone,
i am using star rating in vf page but not showing properly, only 3 and half stars are visible default but when i hover over on empty space on stars then it is showing.

can somebody help,how can i fix that?

 
Best Answer chosen by Shilpa Goyal 9
mukesh guptamukesh gupta
Hi Shilpa , 

You need to check by console and increase witdh of star container, then all will  be visible


if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh

All Answers

Shilpa Goyal 9Shilpa Goyal 9
User-added image
User-added image

please find the images, first image not displaying stars properly
second image on hover i can see stars and able to select them.

any help is appriciated.
Thanks
Shilpa
mukesh guptamukesh gupta
Hi Shilpa , 

You need to check by console and increase witdh of star container, then all will  be visible


if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
This was selected as the best answer
prabhakar Thummojiprabhakar Thummoji
Hi Shilpa,

You need to verify the width of star in console which its not displaying by default and increase width based on the requirement.

Refer the below link for detailed VF page code,It may help you to resolve your issue.

https://www.salesforcebolt.com/2020/03/how-to-create-rating-with-stars-in.html

Please mark as best answer,If its helpful.

Regards,
Prabhakar.T