Looking to display rating stars in a row using repeated images with the inline-block
property:
<span class="stars" style="width:20px; margin-top:15px;">
<span style="width:40px;"></span>
</span>
span.stars, span.stars span {
display: inline-block;
background: url(http://www.ulmanen.fi/stuff/stars.png) 0 0px repeat-x;
height: 16px;
}
Check out this link for a visual reference.
Encountering an issue with inline-block causing the images to not display correctly.
Interested in finding a solution that ensures cross-browser compatibility for this layout. How can I modify the code to achieve this?