Advertisement
whoisYeshua

Vizualization- css specificity (disabled)

Jan 8th, 2023
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.27 KB | Source Code | 0 0
  1. <style>
  2.   main > button.btn {
  3.     background-color: orange;
  4.   }
  5.  
  6.   .btn.btn-primary {
  7.     background-color: violet;
  8.   }
  9.  
  10.   .btn:disabled {
  11.     background-color: darkgrey;
  12.   }
  13. </style>
  14.  
  15. <main>
  16.   <button class="btn btn-primary" disabled>Click</button>
  17. </main>
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement