I have a list of inline-block
elements inside a block container. These elements may or may not wrap over multiple lines depending on the screen size. This is exactly what I want to happen.
However, if two of these elements are next to one another on the same line, I would like to put a bullet or some other separator between them. I am aware that I can use the +
operator in conjunction with the ::before
pseudo-element to place a separator between elements. The only problem I have with this approach is that is also places the separator pseudo-element at the beginning of successive lines, which I do not want. I only want the separator between elements if they are on the same line.
How might I be able to accomplish this?
Edit: Also, my text is center-aligned in this situation