Question #231192

Color Palette

In this assignment, let's build a Color Palette by applying the CSS concepts we learned till now.

CSS Colors used:

Text Color Hex Codes Used:

#011e3f

#ffffff

Background Color Hex Codes Used:

#f87171

#fb923c

#fbbf24

#facc15

#a3e635

#4ade80

#34d399

#22d3ee

#38bdf8

#60a5fa

#818cf8

#c084fc

#e879f9

#f472b6

#fb7185


CSS Font families used:

Roboto



1
Expert's answer
2021-08-30T18:00:43-0400

Index.html

<!DOCTYPE html>
<html lang="en">


<head>
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="stylesheet" href="style.css">
   <title>Document</title>
</head>
<body>
   <div class="container">
      <div class="block">
         <p>Background Color Hex Codes Used: #f87171</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #fb923c</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #fbbf24</p>
         <p>Text Color Hex Codes Used: #011e3f</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #facc15</p>
         <p>Text Color Hex Codes Used: #011e3f</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #a3e635</p>
         <p>Text Color Hex Codes Used: #011e3f</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #4ade80</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #34d399</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #22d3ee</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #38bdf8</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #60a5fa</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #818cf8</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #c084fc</p>
         <p>Text Color Hex Codes Used: #011e3f</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #e879f9</p>
         <p>Text Color Hex Codes Used: #011e3f</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #f472b6</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
      <div class="block">
         <p>Background Color Hex Codes Used: #fb7185</p>
         <p>Text Color Hex Codes Used: #ffff</p>
      </div>
   </div>
</body>


</html>

Style.css

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body{
   background-color#333333FF;
   color#ffff;
   font-family'Roboto', sans-serif;
}
.block {
   width350px;
   height100px;
   margin0px 5px 5px 0px;
   padding-left5px;
}
.container{
   display: flex;
   flex-wrap: wrap;
}
.block:nth-child(1){
   background-color#f87171;
}
.block:nth-child(2){
   background-color#fb923c;
}
.block:nth-child(3){
   background-color#fbbf24;
   color#011e3f;
}
.block:nth-child(4){
   background-color#facc15;
   color#011e3f;
}
.block:nth-child(5){
   background-color#a3e635;
   color#011e3f;
}
.block:nth-child(6){
   background-color#4ade80;
}
.block:nth-child(7){
   background-color#34d399;
}
.block:nth-child(8){
   background-color#22d3ee;
}
.block:nth-child(9){
   background-color#38bdf8;
}
.block:nth-child(10){
   background-color#60a5fa;
}
.block:nth-child(11){
   background-color#818cf8;
}
.block:nth-child(12){
   background-color#c084fc;
   color#011e3f;
}
.block:nth-child(13){
   background-color#e879f9;
   color#011e3f;
}
.block:nth-child(14){
   background-color#f472b6;
}
.block:nth-child(15){
   background-color#fb7185;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS