Prepositive Rating Bar

CSS

[data-rem-tags~="1star"] .rem-text {
	margin-left: 65px;
}

[data-rem-tags~="1star"] .rem-bullet::before {
	content: "★";	
	color: #F1FA8C;
	background-color: #2B3137;	
	border-radius: 5px;
	padding: 2px;
	padding-right: 58px;
	position: relative;
	top: -7px;
	left: -4px;
}

[data-rem-tags~="2star"] .rem-text {
	margin-left: 65px;
}

[data-rem-tags~="2star"] .rem-bullet::before {
	content: "★★";	
	color: #F1FA8C;
	background-color: #2B3137;	
	border-radius: 5px;
	padding: 2px;
	padding-right: 44px;
	position: relative;
	top: -7px;
	left: -4px;
}

[data-rem-tags~="3star"] .rem-text {
	margin-left: 65px;
}

[data-rem-tags~="3star"] .rem-bullet::before {
	content: "★★★";	
	color: #F1FA8C;
	background-color: #2B3137;	
	border-radius: 5px;
	padding: 2px;
	padding-right: 30px;
	position: relative;
	top: -7px;
	left: -4px;
}

[data-rem-tags~="4star"] .rem-text {
	margin-left: 65px;
}

[data-rem-tags~="4star"] .rem-bullet::before {
	content: "★★★★";	
	color: #F1FA8C;
	background-color: #2B3137;	
	border-radius: 5px;
	padding: 2px;
	padding-right: 16px;
	position: relative;
	top: -7px;
	left: -4px;
}

[data-rem-tags~="5star"] .rem-text {
	margin-left: 65px;
}

[data-rem-tags~="5star"] .rem-bullet::before {
	content: "★★★★★";	
	color: #F1FA8C;
	background-color: #2B3137;	
	border-radius: 5px;
	padding: 2px;
	position: relative;
	top: -7px;
	left: -4px;
}
3 Likes

Good Job… You are Star…

1 Like

Honor to hear that! :sweat_smile:

Hey,

The Rating Bar disappears when The rem has content…
It does not behave like your screenshot…
Thanks.

I fixed it. please try again :thinking:
Next time, I will scrutinize my code sorry for the inconveniece. :grinning_face_with_smiling_eyes:

1 Like