After developing some CSS classes to define specific hex colors for my web application, I ran into issues applying these styles to text in the HTML. Despite my best efforts, I am struggling to make the styles show up as intended.
CSS
.custom-orange-color {
color: #F58B30;
}
.custom-pink-color {
color: #ED178F;
}
HTML
<p>I want to use the custom <style class="custom-orange-color">orange</style> color and the custom <style class="custom-pink-color">pink</style> color in this text.</p>
When I tried implementing this code, the text within the style
tags seemed to disappear completely. What could be causing this issue?