why no work .pookiepie { .field__items { display: flex !important; gap: 3px; }…
- User
why no work
.pookiepie { > .field__items { display: flex !important; gap: 3px; } background-color: red; }
- Assistant
It appears there are a couple of issues with your CSS that might prevent it from working as expected. Here are some potential reasons:
-
Invalid Selector: The child combinator (
>) is not used correctly. It should be used within the context of the parent selector. In your example, it looks like you are trying to style the child element.field__items, of an element with the.pookiepieclass. However, the usage of>in this way inside the curly braces is incorrect. -
Order of Selectors: If you are trying to apply styles to
.field__items, you should define it under a descendant combinator inside.pookiepie.
Here is the corrected version of your CSS:
-