Issue #2211💬 AnsweredOpened August 22, 2019by abozhinov0 reactions

How to set style for pseudo elements (:after and :before)

Quick answerby artf

Do you mean during the editing? Do you see it good if you deselect the component?

Read full answer below ↓

Question

Hi, I add STATE in style manager :before and :after but all the styles are applied to the component.

Answers (3)

artfAugust 26, 2019

Do you mean during the editing? Do you see it good if you deselect the component?

abozhinovAugust 26, 2019

Yes during the editing. My idea was to implement the pseudo elements. When you select component to select state like hover, but to be :after or :before. The problem is that I need to set content: '' in the css rule and all the styles are applied on the main element.

artfAugust 27, 2019

Ok but is it correct once you deselect the component?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.