In the topic color there is box below the page how did they create that box https://www.codecademy.com/courses/learn-css/lessons/css-visual-rules/exercises/color

In the topic color there is box below the page how did they create that box which belongs to class caption.
https://www.codecademy.com/courses/learn-css/lessons/css-visual-rules/exercises/color

1 Like

Welcome to the forums :slight_smile:

You’re probably thinking about the opacity attribute. It’s a nifty trick!

.caption {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-style: italic;
  line-height: 14px;
  margin-left: 20px;
  padding: 10px;
  position: relative;
  top: 80%;
  width: 60%;
  background-color: white;
  color: black;
  opacity: 0.75;
}