Remove the pseudo element ::after on specific elements [BROOKLYN]

Excursionist
15 0 2

Hello,

I am trying to add an FAQ page to my store and I want the questions to be displayed as headings (h2 to be more specific);

the only problem is that all heading have this drawn line drawn under them by default, and as you can imagine it is not very convenient for questions.

sdd.png

Turns out, it's the pseudo-element ::after is the one causing that so I wanted to remove that line, but not from all the headings, therefore, I created a class to hopefully overwrite the existing ones and that I can only apply to the headings that I want, this is the code I used:

.noUL{
  &:after{
    content: none;
  }
}

It doesn't seem to work and I'm kind of stuck 🤷‍♂️

Can someone please help?

Thanks in advance!

UBoi

0 Likes
Navigator
358 39 40

hello, can you share your website link? I can check it and remove the psuedo code, can we have a chat?

you are welcome to contact / donate small amount to me.
My email - suyash.patankar@gmail.com

paypal.me/suyashpatankar
0 Likes