---
title: "Discussion on \":: before & ::after in CSS Explained\" | Hashnode"
description: "Discussion on \":: before & ::after in CSS Explained\". Hey Readers👋\nToday we are going to learn about ::before and ::after pseudo elements.\nOften considered as one of those topics in CSS that scares almost every beginners. The main cause behind this is the lack of good examples. As a beginner I was too ..."
url: "https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [:: before & ::after in CSS Explained](https://inshaweb.hashnode.dev/before-and-after-in-css-explained?utm_source=hashnode&utm_medium=feed)

Hey Readers👋 Today we are going to learn about ::before and ::after pseudo elements. Often considered as one of those topics in CSS that scares almost every beginners. The main cause behind this is the lack of good examples. As a beginner I was too ...

May 27, 2021 · 3 min read · inshaweb.hashnode.dev  
Updated Jul 28, 2021  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Insha Ramin](https://hashnode.com/@Inshaweb)

@Inshaweb · New Delhi, India

  
[View profile](https://hashnode.com/@Inshaweb)

DevRel | Simplifying tech concepts | Python, Blockchain, AI

Insha is a backend developer who specializes in building communities that drive shared value between developer-centric organizations and their users, aiming to enhance engagement, satisfaction, and retention. Proficient in Python and well-versed in web technologies including HTML, CSS, JavaScript, Django and SQL, she brings a dynamic skill set to the table.

## Responses 3

Markdown supported · ⌘↵ to post

[Victor Terkuma](https://hashnode.com/@Iamtsquare07)

[Jun 29, 2021](https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146/comment/60db91737c7df7644acddef3)

This is a very informative Article Insha, you made the topic easy to understand, I have not written the ::before & after in CSS because I am not used to UI and front-end but I will definitely look forward to using it when I need to as you explained it so well.

[Balveer Singh](https://hashnode.com/@powerfulcoder)

[May 27, 2021](https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146/comment/60afb7bc9b1e2e1dccbcb4b0)

Nice article for beginners it would be nice if you write on linear gradient too

[Insha Ramin](https://hashnode.com/@Inshaweb)

[May 27, 2021](https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146/comment/60afb7bc9b1e2e1dccbcb4b0#reply-60afc7745c02001765cf48e8)

Thank you. I'll surely look upto your suggestion 🙌

[Victoria Lo](https://hashnode.com/@victoria)

[May 27, 2021](https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146/comment/60afad7c9b1e2e1dccbcb36c)

Hi Insha, great article. Short and sweet, also well-structured and well-formatted. The only feedback I would give is the numberings on the "::before" and "::after" header are both 1.

I believe it should be 1. ::before then 2. ::after, so it makes sense (see image below).

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622125721733/TOosKZU6P.png)

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622125742495/EkbitNvNa.png)

Also, may be another small detail. You should use italic and bold mindfully, to emphasize certain points in your article. It can get too over-the-top if it's used in almost every sentence 😊 Overall, well done!

[Insha Ramin](https://hashnode.com/@Inshaweb)

[May 27, 2021](https://hashnode.com/posts/before-and-after-in-css-explained/60af9d569b1e2e1dccbcb146/comment/60afad7c9b1e2e1dccbcb36c#reply-60afb1595c02001765cf46db)

Thank you so much Victoria for the feedback. I'll keep these in mind while writing the next article. Surely will try to avoid the silly mistakes. 😊🙌
