-1
I would like to know how to change the color of my cards , I have several cards with the class "card", and I made a button that when clicking changes to a simple light mode ,and I wanted the cards to be blue because they are transparent in dark mode , only I tried to put all cards with the same id and change in the function and does not change , I tried byClassname does not change either ,I wanted to change the color of all cards
An example of 2 cards
<div class="card">
<div class="content">
<div class="imgBx">
<div class="contentBx">
<h3 > Seguimento de entregas <br><span> R034 </span></h3>
</div>
</div>
</div>
</div>
<div class="card">
<div class="content">
<div class="imgBx">
<div class="contentBx">
<h3 > cronograma Admissão <br><span> R035 </span></h3>
</div>
</div>
</div>
Javascript
<script type="text/javascript">
function Light() {
var back = window.document.body
back.style.background = "rgb(255, 255, 255)";
document.getElementById("hdr").style.background = "blue";
document.getElementsByClassName("card").style.background = "blue";
}
</script>
``
thank you guy worked , worth even one thousand note to Voce , I did not know that obgadao same
– Nicholas Lütgens