I have built an application which is meant to take a star rating. The actual rating mechanism is done with Javascript and CSS.
The intended functionality is that you hover over the stars to make your selection, and then click on it to lock it in.
What I have at present can be seen here. Honestly, I'm at my wit's end: Everything is working as I want it to, but for some reason only the top few pixels of the star works with the hover-over.
There must be an alignment issue, but I can't for the life of me figure out what it is.
I wish I could offer a bounty on this one, it has been bugging me for days - if anyone has any ideas for where I can begin to look for this silly little but, I'd be most grateful.
The relevant CSS for the star ratings bit is:
#star ul.star, #star ul.star0
{
list-style: none;
margin: 0 !important;
padding: 0 !important;
width: 85px;
height: 25px;
left: 10px;
position: relative;
float: left;
background: url('media/stars.gif') repeat-x;
cursor: pointer;
}
#star ul.star0
{
cursor: default;
}
#star li {
PADDING: 0 !important;
MARGIN: 0 !important;
FLOAT: left;
DISPLAY: block;
WIDTH: 85px;
HEIGHT: 25px;
TEXT-DECORATION: none;
text-indent: -9000px;
Z-INDEX: 20;
POSITION: absolute;
PADDING: 0; }
#star li.curr {
font-size: 1px;
background: url(media/stars.gif) 0 25px;
}
#star div.user {
top: 10px !important;
left: 15px !important;
position: relative;
float: left;
font-size: 13px;
COLOR: #999;
}