How to hide button element using only CSS? [duplicate]

1

I am trying to use the display: none property on the button element, but it does not work. If I put it in the class it works, eg:

.btn {
     display: none;
     }

But if I put the element button it does not work:

button {
     display: none;
     }

So the question is how do I hide the button elements without using a class?

    
asked by anonymous 16.08.2017 / 21:08

1 answer

1

It is likely that your css is in conflict with some other, in this case you can increase the weight of the css. For example:

div #btnEnviar.btn {
     display: none !important;
}
    
16.08.2017 / 21:14