I have an idea. make and array of round square looking map of unicode star chars with 50…
- User
I have an idea. make and array of round square looking map of unicode star chars with 50 in total for css: content: "(put your stars array here)";
- Assistant
Sure, here is an array of round square looking map of unicode star chars:
const stars = [ "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605", "\u2605" ];
You can then use this array in your CSS like this:
.content { content: " "; display: inline-block; font-size: 20px; line-height: 1; margin-right: 5px; text-shadow: 1px 1px 1px #000; }
.content::before { content: "("; }
.content::after { content: ")"; }
To display all the stars, add the following loop in your HTML: