-2

This is my html code

This is my css code

When in CSS I write the CSS code for .keys class like this and add class .transistionOfKeys to html then my border properties does not add to it

But when I change my CSS code to this by removing .container and just keeping it to .keys then it works

after changing CSS code

So I want to know reason for this...

Hope someone answer this question soon...

Johannes
  • 64,305
  • 18
  • 73
  • 130
  • 4
    Please include your code in your question as text, not links. It makes it easier for us to copy it into our own IDEs to test it. – M-Chen-3 Jan 07 '21 at 16:54

1 Answers1

1

Change the selector for the second rule to .container .transistionOfKeys {...} to achieve the same CSS specifity as the first CSS rule.

Johannes
  • 64,305
  • 18
  • 73
  • 130