# Check if the row does not contain an image

**URL:** <https://forums.distill.io/t/check-if-the-row-does-not-contain-an-image/4653>\
**Category:** Help and Support\
**Created:** [January 30, 2025, 6:15am UTC](https://forums.distill.io/t/check-if-the-row-does-not-contain-an-image/4653 "2025-01-30T06:15:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinkin](https://forums.distill.io/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@tinkin](https://forums.distill.io/u/tinkin)\
**Post date:** [January 30, 2025, 6:15am UTC](https://forums.distill.io/t/check-if-the-row-does-not-contain-an-image/4653/1 "2025-01-30T06:15:07Z")

</div>

The site I’m monitoring has a lot of rows containing images but I only want to filter out the ones that don’t have them. Is there any way to do this? Thanks for your attention!!

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [January 30, 2025, 8:14am UTC](https://forums.distill.io/t/check-if-the-row-does-not-contain-an-image/4653/2 "2025-01-30T08:14:48Z")

</div>

@tinkin it should be possible to select all rows that contain the images. one way of doing that is by using `:has()` (a css pseudo-class).

here’s an example of using the `:has()` to select only those rows that contain an image (img tag):

```html
<table><tbody>
  <tr><td>some text</td></tr>
  <tr><td>with image 1 <img src/> </td></tr>
  <tr><td>with image 2 <img src/> </td></tr>
  <tr><td>another text</td></tr>
</table></tbody>

```

selector:

```css
tr:has(img)

```

`tr:has(img)` will match only the table rows (`<tr>`) that contain an `<img>` tag, ignoring rows that do not have an image.
