I have this CSS
.pages a { text-decoration: none; color: #1e1e1e; font-weight: bold; display: inline; padding-left: 8px; } .pages a:after { content: "|"; padding-left: 8px; }
I want the contents in a:after
have |
after the last "a". How should I do it? I tried using :last-of-type
, but that didn't work.
Currently it looks like
1 | 2 | 3 |
source share