---
title: "Comment by Oye Ibrahim on \"What are div::before and div::after? How do we use them ?\" | Hashnode"
description: "Interesting read, thanks for sharing. So from what I understand here is that the ::before add content before the text within the div while ::after add content a"
url: "https://hashnode.com/posts/what-are-divbefore-and-divafter-how-do-we-use-them/6324a11abc15ea8efdf5dfbe/comment/6324ce70dd55cd8b89b1d661"
---

[Discussion](https://hashnode.com/posts/what-are-divbefore-and-divafter-how-do-we-use-them/6324a11abc15ea8efdf5dfbe)

Comment [What are div::before and div::after? How do we use them ?](https://hashnode.com/posts/what-are-divbefore-and-divafter-how-do-we-use-them/6324a11abc15ea8efdf5dfbe)

[Oye Ibrahim](https://hashnode.com/@Oye)

[Sep 16, 2022](https://hashnode.com/posts/what-are-divbefore-and-divafter-how-do-we-use-them/6324a11abc15ea8efdf5dfbe/comment/6324ce70dd55cd8b89b1d661)

Interesting read, thanks for sharing. So from what I understand here is that the ::before add content before the text within the div while ::after add content after the text . eg

<div> ::before Hello! ::after </div>

[Dita Izaty](https://hashnode.com/@dita-izaty)

[Sep 17, 2022](https://hashnode.com/posts/what-are-divbefore-and-divafter-how-do-we-use-them/6324a11abc15ea8efdf5dfbe/comment/6324ce70dd55cd8b89b1d661#reply-63251853bc15ea8efdf5ebea)

Yes, that's correct; thank you for reading, Oye.. I'm glad if that was useful
