How to find CSS Selectors for your elements in your website?

How to find CSS Selectors for your elements in your website?

Easily locate the CSS selectors for elements on your website to use in various applications such as Poper triggers or styling. Follow these steps to find the CSS selector for any element:

How to Find CSS Selectors:

Open Your Website:

Navigate to the webpage where the element whose CSS selector you want to find is located. Ensure the webpage is loaded in your browser. For example, I have opened this webpage -

Right-Click on the Element:

Identify the specific element on the webpage for which you want to obtain the CSS selector. Right-click on the element to open the context menu. For example, I want to get CSS Selector for this element -

Access Browser Inspector:

From the context menu, select "Inspect" or "Inspect Element." This action will open the browser's built-in Inspector tool, displaying the HTML code of the webpage.

Identify the Element's Code:


In the Inspector panel, the HTML code corresponding to the selected element will be highlighted. Locate the element within the code structure.

Copy the CSS Selector:


Right-click on the highlighted element's code within the Inspector panel. Navigate to the "Copy" submenu, then select "Copy Selector." This action will copy the CSS selector of the element to your clipboard.

Use the CSS Selector:

Now that you have copied the CSS selector, you can use it in various applications, such as applying on click or on hover events in Poper.
    • Related Articles

    • Make Elements Clickable in Poper

      Poper's popup builder just got more interactive! You can now transform various elements within your popups into clickable hotspots, creating engaging experiences for your visitors. This guide will show you how to make headings, subtext, boxes, and ...
    • How to create Embed (In Page) Campaigns in Poper

      Poper's embed feature allows you to strategically place popups or widgets within specific sections of your web pages. This guide will walk you through the process of creating embeds and customizing their placement. Steps to Create an Embed: Access ...
    • On Click/Hover Trigger

      Increase engagement and capture leads at the right moment by configuring On Click or Hover triggers for your popups in Poper. Follow these steps to set up the trigger: How to Set Up On Click/Hover Trigger: Edit Popup: Navigate to the Poper dashboard ...
    • How to make input fields as required in Poper? (Checkbox, Input, and Phone elements)

      Poper allows you to designate specific input fields as mandatory, ensuring visitors provide crucial information before submitting the form. This guide will walk you through the process of making input fields (like text, checkbox, and phone number) ...
    • How to remove Background Overlay in Poper?

      Removing the background overlay in Poper's popups allows users to interact with the background elements while the popup is displayed. This is especially useful for creating popups that slide in from the side and do not obstruct other elements on the ...