jQuery-Rate | A simple jQuery plugin for creating graphical ratings | Plugin library
kandi X-RAY | jQuery-Rate Summary
kandi X-RAY | jQuery-Rate Summary
A jQuery plugin that allows you to draw simple ratings. Please checkout the demo to see what the plugin can do and how to use it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jQuery-Rate
jQuery-Rate Key Features
jQuery-Rate Examples and Code Snippets
Community Discussions
Trending Discussions on jQuery-Rate
QUESTION
I used a jquery plugin to display a star rating from here.
The stars are displaying fine , however on selecting the stars, the selected color is red by default. the select color is in .rateit .rateit-selected
class. I changed it to a yellow color in my style.css file
ANSWER
Answered 2021-Jun-02 at 13:43The last value in the background
CSS shorthand you're using is the vertical offset of the image. It's currently set to -16px
which means that the image is raised 16px so that instead of displaying the default grey star which is at the top of the image, the red star is displayed instead.
If you want to show the yellow star, change the value to -32px
to move the image up further:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jQuery-Rate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page