I have a <ul>
with a number of <li>
's. I have the following styles set on it:
list-style: none; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
Each <li>
also has a pseudo :after
on it with the following styles:
content: "";
display: block;
width: 0.5em;
height: 0.5em;
aspect-ratio: 1/1;
background-color: var(--color-gothic);
border-radius: 50%;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: -1.25em;
This gives me a small circle between every item. It's purely decorative.
I really don't think there is a solution to this but thought i'd ask incase anyone has any genius brainwaves.
What I want is for the decorative dots to appear between items but NOT to appear after an item if it's the last one on a line.
That make sense?