Advanced Features

    How do CSS selectors work in visual monitoring?

    Restrict visual monitoring to a specific region using a CSS selector so Lemwatch only diffs the part of the page that matters, like pricing or hero.

    Updated 2026-07-10
    1 min read
    visual-monitoring
    selectors
    diff

    Quick answer#

    Add a CSS selector (e.g., #pricing, main .hero) to each monitored page and Lemwatch will crop the screenshot to that element before running the visual diff.

    When to use selectors#

  1. Pricing tables you want to track word-for-word
  2. Hero copy that must never regress
  3. Legal footers
  4. Any critical widget wrapped in dynamic chrome
  5. Where to find it in Lemwatch#

    Site → Visual Monitoring → Monitored Pages → CSS Selector.

    FAQ#

    Which selectors are supported?#

    Any valid CSS selector: id, class, attribute, descendant, :nth-child.

    What if the selector matches nothing?#

    We fall back to a full-page screenshot and warn in the UI.

  6. Ignore zones
  7. Diff threshold
  8. Was this article helpful?