Search code examples
htmlcssbuttonborder

Style all buttons except 2 buttons


.button , button{
border:solid black 2px !important;
}

With this code I have provided a frame for all buttons. However, I don't want to have a frame for the buttons "searchsubmit" and "single_add_to_cart_button". How do I do that ?


Solution

  • I believe those are your class names. If yes, then you can add border: none !important.

    button.searchsubmit, 
    button.single_add_to_cart_button {
       border: none !important;
    }