Hey all, have a few quick questions and hoping someone could take a look. I was wondering why some of the code on the example survey page was set up this way:
'<p id=“description” class=“description text-center”>
Thank you for taking the time to help us improve the platform
.description {
font-style: italic;
font-weight: 200;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.clue {
margin-left: 0.25rem;
font-size: 0.9rem;
color: #e4e4e4;
}
.text-center {
text-align: center;
}
-
Why the need to create 2 different classes for the 1 element?
-
Why not have “text-align: center;” go under .description as well?
-
Is there any meaning to the .clue class being placed between these 2 classes in CSS?
Full code is here: https://codepen.io/freeCodeCamp/pen/VPaoNP