---
title: "Comment by Roger Colque Calcina on \"CSS pseudo-elements: `before` and `after`\" | Hashnode"
description: "Nice also work with url ends in .pdf. a [href$= &quot;.pdf&quot; ] { background : url ( &quot;your-pdf-image.png&quot; ) no-repeat left; padding-left : 25px ; }"
url: "https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c/comment/5fae9e427fcc8d387fc0cf59"
---

[Discussion](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c)

Comment [CSS pseudo-elements: \`before\` and \`after\`](https://hashnode.com/posts/css-pseudo-elements-before-and-after/5fad3dda8f0a026553478c5c)

[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 (:
