Using :after and :before for Content Injection in CSS


Inject content before or after an element’s content using :before and :after.

Source Code

.element:before {
    content: "Before ";
}
.element:after {
    content: " After";
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments