---
title: "Discussion on \"CSS pseudo-elements: `before` and `after`\" | Hashnode"
description: "Discussion on \"CSS pseudo-elements: `before` and `after`\". My first job was at a firm that created custom websites.\nThey mostly looked awesome and were CSS-heavy. I was an hour into my first day when I already encountered a ::before - something a junior rarely uses at home when learning and it's hard to grip..."
url: "https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c"
---

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

Discussion

# [CSS pseudo-elements: \`before\` and \`after\`](https://girlthatlovestocode.com/css-pseudo-elements-before-and-after?utm_source=hashnode&utm_medium=feed)

My first job was at a firm that created custom websites. They mostly looked awesome and were CSS-heavy. I was an hour into my first day when I already encountered a ::before - something a junior rarely uses at home when learning and it's hard to grip...

Nov 12, 2020 · 16 min read · girlthatlovestocode.com  
Updated Mar 22, 2021  
Read the article

-   [#css3](https://hashnode.com/tag/css3)
-   [#css](https://hashnode.com/tag/css)

## Written by

[GirlThatLovesToCode](https://hashnode.com/@GirlThatLovesToCode)

@GirlThatLovesToCode · Slovenia

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

Self-taught developer that wants to support everyone that are learning to code, especially women.

I'm passionate about learning new things -- both for myself and for teaching others. I'm a fan of Python and Django and want to know everything there is about those two. When I'm not writing code or a blog, I'm probably trying something new, reading, or spending time outside with my family.

## Responses 3

Markdown supported · ⌘↵ to post

[Hele Moanna](https://hashnode.com/@HeleMoanna)

[Dec 25, 2021](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/61c71c001697f253954fe389)

Actually very interesting topic. Once I had long discussion with my friend about what is waiting for humanity in the future. I think a new era will come with new era of much more powerfull computers and artificial intelligence as strong as the human brain. It opens up new horizons of opportunities: the study of the universe, the actual immortality of a man of a new model and to infinity of other things. Sounds fantastically crazy. Guys on [literature review writing service](https://literaturereviewwritingservice.com/) can write afordable essays of outstanding qualitty on any possible subject. Don't pass by, save this to usefull link!

[Roger Colque Calcina](https://hashnode.com/@rogergcc)

[Nov 13, 2020](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/5fae9e427fcc8d387fc0cf59)

Nice also work with url ends in .pdf.

```
a[href$=".pdf"]
{
  background:url("your-pdf-image.png") no-repeat left;
  padding-left:25px;
}
```

[GirlThatLovesToCode](https://hashnode.com/@GirlThatLovesToCode)

[Nov 26, 2020](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/5fae9e427fcc8d387fc0cf59#reply-5fbfb3311a95c63e9c0f480d)

That's amazing (:

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Nov 13, 2020](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/5fae55d58f0a026553479962)

Very well explained [GirlThatLovesToCode](https://hashnode.com/@GirlThatLovesToCode). Thank you for sharing.

[GirlThatLovesToCode](https://hashnode.com/@GirlThatLovesToCode)

[Nov 13, 2020](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/5fae55d58f0a026553479962#reply-5fae86abfa438d6532c7f2c1)

Glad you like it (: Thanks (:
