You can’t make a pseudo-element selectable, as it doesn’t exist in the DOM.
5.10 Pseudo-elements and pseudo-classes
Neither pseudo-elements nor pseudo-classes appear in the document source or document tree.
Related Contents:
- CSS :not(:last-child):after selector
- How can I write a ‘:hover’ condition for ‘a:before’ and ‘a:after’?
- Is there a way to use SVG as content in a pseudo element ::before or ::after
- Is it possible to set the stacking order of pseudo-elements below their parent element? [duplicate]
- Can I change the height of an image in CSS :before/:after pseudo-elements?
- :after and :before pseudo-element selectors in Sass [duplicate]
- Combine :after with :hover
- css rotate a pseudo :after or :before content:”” [duplicate]
- Add line break to ::after or ::before pseudo-element content
- Can I have multiple :before pseudo-elements for the same element?
- Using :before CSS pseudo element to add image to modal
- :after vs. ::after
- Why don’t :before and :after pseudo elements work with `img` elements? [duplicate]
- Should I use single or double colon notation for pseudo-elements?
- What is the difference between a pseudo-class and a pseudo-element in CSS?
- CSS :after not adding content to certain elements
- Editing input type=”search” Pseudo-element Button (‘x’)
- How do I add / insert a before or after pseudo element into Chrome’s Inspector?
- Apply webkit scrollbar style to specified element
- width and height doesn’t seem to work on :before pseudo-element
- What is the difference between pseudo-classes and pseudo-elements?
- Why isn’t it possible to combine vendor-specific pseudo-elements/classes into one rule set?
- Can you add line breaks to the :after pseudo element?
- How to make a hover effect for pseudo elements?
- Vertically centering content of :before/:after pseudo-elements
- Center a Pseudo Element
- How do I override CSS set on a pseudo element?
- CSS :before on inline SVG
- “text-decoration” and the “:after” pseudo-element, revisited
- Pseudo elements and SELECT tag
- CSS:after encoding characters in content
- Nesting pseudo-elements inside pseudo-elements
- CSS Pseudo Element Counters: can you increment an alphabet letter “a”, “b”, “c”, etc instead of a number?
- CSS Variables (custom properties) in Pseudo-element “content” Property
- CSS: Pseudo-elements :before and :after inheriting width/height from original element
- Two ::after pseudo-elements [duplicate]
- sass :first-child not working
- Can I target a :before or :after pseudo-element with a sibling combinator?
- Does the shadow DOM replace ::before and ::after?
- How to rotate a pseudo-element’s content value
- In CSS use “display:none” on the element, but keep its “:after”
- How do I combine a background-image and CSS3 gradient on the same element?
- How to make a floated div 100% height of its parent?
- How to use Apple’s new San Francisco font on a webpage
- Add space between HTML elements only using CSS
- What is the purpose of this purple dashed line area?
- CSS rotate property in IE
- How do I override default PrimeFaces CSS with custom styles?
- Simple CSS: Text won’t center in a button
- How can I prevent CSS gradient banding?