I'm playing around with styling symbols and want to try to style this header by giving each of the dots between the letters the colors of the actual FRIENDS logo. I wanted to know what would be the best way to do this. Can symbol colors be changed in HTML? If yes, is making p
tags with different ID's the only way to style the dots? Here is the header:
<header> F•R•I•E•N•D•S </header>
Note: I would only like to use HTML and CSS to do this not Javascript or JQuery
You can use span
tags which have class
attributes and according CSS rules for the classes (which can be reused)
.red {
color: red;
}
.blue {
color: blue;
}
.green {
color: green;
}
.yellow {
color: yellow;
}
.orange {
color: orange;
}
.brown {
color: brown;
}
<header> F<span class="red">•</span>R<span class="blue">•</span>I<span class="green">•</span>E<span class="yellow">•</span>N<span class="orange">•</span>D<span class="brown">•</span>S </header>