Skip to main content

:after selector not working

Comments

3 comments

  • Alex

    Hi,

    From what I know my colleague Denis sent you an answer to your comment: https://support.brizy.io/hc/en-us/community/posts/360076226031/comments/4405045488913 Did you check this?

    0
  • A G

    Hi Alex, I did check that comment, and while useful for this one use case, I find myself needing more uses for :after and :before selectors, especially with dynamic content, since there's no way to pre-pend information via the native builder.

    So how do I do this WITHOUT using the inspector each time to get the correct element selector? Custom ID or class? I assumed element:after would be enough

    0
  • Alex

    Hi,

    you could add CSS class or ID but you will have to go through Inspect Element anyway to find the right selector because the custom css class could be placed in a branch higher than the div you need. So you may need to add some more selectors after custom css class in your code.

    0

Please sign in to leave a comment.