Hey fellow devs, I just started out in WebDev after some time with C#/Java/Games and I’m trying to learn a thing or two.

My problem is: How do I get rid of the black rounded border after clicking on an element?I tried overriding the ::selection, :active, :hover css classes with no success.

r/webdev - [CSS] Remove Button style/function

How do I get rid of the black border after clicking?

The way this table of buttons is set up is a js script that builds the whole thing, removes the “style” attribute and adds the appropriate css with classlist.add('cssClass')

What am I missing or what keywords are the things I have to search for?

Any advice is appreciated

EDIT:

The solution to this is to set

.class:focus { outline: none; }

Thanks u/-noveltyhero-



Source link

Write A Comment