2
I have a problem with the colors of my buttons, and I haven’t figured out how to fix it yet.
If you have a button
with type submit
doesn’t stay in the color I want.
Example with type submit
:
<button type="submit" data-toggle="modal" class="btn btn-success" onclick="inserir_registo()">Enviar</button>
Example without type submit
, is already in the color I want:
<button type="button" data-toggle="modal" class="btn btn-success" onclick="inserir_registo()">Enviar</button>
Can someone explain to me why this is happening?
I believe that somewhere in your CSS you changed something you shouldn’t... maybe you put something like
[type="submit" ] { background: red}
or something like this in some custom.css that is calling in the document. Pq here I tested with the BS3 pattern and got to see in qq one of the cases– hugocsl
@hugocsl didn’t change anything in css and put this line
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
on my page fixed this issue, but changes the menu bar display– Bruno
Dude you’re gonna be having a conflict problem. CSS in this case the best is to put a new class in the button and in this class put the background-color you want with ! Important to see if it solves.... It is not an option that pleases me, but without seeing the project you can’t see where the error is...
– hugocsl