Another way is using CSS. Define the inner div's width as the percentage of the rating value, see the bold.
<div style="width: 100px; background-color: #EEEEEE; border: 1px solid #444444;"> <div style="width: 74%; height: 20px; background-color: #FF0000"></div> </div> 7.4/10The output is
i like the latter bar style since i m not good at doing picture editing. To display rating value in bar style is also more precise.
No comments:
Post a Comment