Reputation: 485
I have problem with my div "rating", his position is right, I want to place her on start left.
I can solve using position absolute for div rating, but that's not success solution.
HTML
<div class="rating">
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span>
</div>
CSS
.rating > span:hover:before {
content: "\2605";
position: absolute;
}
.rating {
unicode-bidi: bidi-override;
direction: rtl;
}
.rating > span:hover:before,
.rating > span:hover ~ span:before {
content: "\2605";
position: absolute;
}
.rating {
unicode-bidi: bidi-override;
direction: rtl;
}
.rating > span {
display: inline-block;
position: relative;
width: 1.1em;
}
.rating > span:hover:before,
.rating > span:hover ~ span:before {
content: "\2605";
position: absolute;
}
Upvotes: 0
Views: 52
Reputation: 1639
Float the rating div to left.
.rating {
direction: rtl;
float: left;
unicode-bidi: bidi-override;
}
Upvotes: 1