whaT is #fff and why is it used?

Tell us what’s happening:

why is this used here
color: #fff;

Your code so far

.injected-text {
  margin-bottom: -25px;
  text-align: center;

.box {
  border-style: solid;
  border-color: black;
  border-width: 5px;
  text-align: center;

.yellow-box {
  background-color: yellow;
  padding: 10px;

.red-box {
  background-color: crimson;
  color: #fff;
  padding: 20px;
  margin: -15px;

.blue-box {
  background-color: blue;
  color: #fff;
  padding: 20px;
  margin: 20px;

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box blue-box">padding</h5>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Add a Negative Margin to an Element

Link to the challenge:

#fff is a shortcode for #ffffff which is white.

where is white in this webpage i dont find it

this is white color code which use in html

According to the code it’s the text in the red box and the blue box.

1 Like