How to remove black border on click - HTML

gmatg -  
 HtaProduction -
Hi everyone!!
I'm reaching out because I can't find an answer to my problem...
I would like to remove that darn black border when I click on my buttons.
I've already tried with
outline-style: none;
, but it doesn't work.
If anyone has the answer to my problem, I'd appreciate it :-)

Thank you all

3 answers

  1. jordane45 Posted messages 30427 Registration date   Status Moderator Last intervention   4 831
     
    Hello,

    it's not outline-style .. but just outline
    for example:
     input[type="button"] { border: none; outline:none; } 


    --
    Best regards,
    Jordane
    1
  2. gmatg
     
    Hi, I had already tested this solution but it doesn't work...
    Do you have another solution?

    Thank you.
    0
    1. jordane45 Posted messages 30427 Registration date   Status Moderator Last intervention   4 831
       
      Before saying that it doesn't work... have you cleared your browser cache?
      And by the way... which browser are you using?
      0
    2. gmatg > jordane45 Posted messages 30427 Registration date   Status Moderator Last intervention  
       
      I'm testing my site on Google Chrome. How do I "clear the cache"?

      Thank you.
      0
    3. gmatg > jordane45 Posted messages 30427 Registration date   Status Moderator Last intervention  
       
      Thank you!! I just cleared my entire cache, something I had done... But I still see the famous black border.
      Do you have a solution?
      Thank you.
      0
    4. jordane45 Posted messages 30427 Registration date   Status Moderator Last intervention   4 831 > gmatg
       
      Try with
       .activity:focus{ outline:none !important; } 

      And place your CSS call (I assume it is in Accueil.css) after all other CSS.

      As a reminder, the last CSS read is the one that will be applied in case you have other rules in the previous CSS...
      So by placing your CSS at the end, it will therefore be prioritized.
      1
  3. HtaProduction
     
    It works very well, thank you!
    0