Reputation: 1998
Can I use CSS pseudo elements ::before
and ::after
to wrap some text in brackets?
i.e.
Text
becomes:
(Text)
Upvotes: 17
Views: 5671
Reputation: 10736
Yes you can
<span>text</span>
span:before {
content: '(';
}
span:after {
content: ')';
}
Upvotes: 20