javascript – How to make an automatic change of colour every day?-ThrowExceptions

Exception or error:

How can I make it so the colours change every day to three new colours without me having to change it

This is the example image.

    .colour1{
  position: relative;
  background:#8E3AC3;
  width:216px;
  height:195px;
  margin-left:-20px;
  border-radius: 6.5px;
}
.colour2{
  background:#ACAA8B;
  width:225px;
  height:195px;
  margin-top:-195px;
  margin-left:195px;
  margin-right: 5px;
  margin-bottom: 600px;
  border-radius: 6px;
}
.colour3{
  background:#85FB53;
  width:216px;
  height:195px;
  margin-top:-795px;
  margin-left:419px;
  margin-right:0px;
  margin-bottom: 600px;
  border-radius: 6.5px;

That is the code now. Could you send the fixed code.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *