Using the content Property with Pseudo-elements in CSS


Leverage the content property to dynamically insert content with CSS.

Source Code

.element::before {
    content: 'Prefix - ';
}
.element::after {
    content: ' - Suffix';
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments