Is it possible to add a CSS class to a pre-existing bootstrap class on a webpage? For example, I know how to add a custom font to a bootstrap page, but I only want to change the font of a specific line while keeping the rest of the text with the default font.
<h1 class="text-center"> Hello World</h1>
I want to keep the bootstrap class text-center
but apply a different font by using a CSS file to target that specific line. Is there a way to achieve this like in the code snippet below?
.Hello{
font-family: 'Indie Flower', cursive;
}
Would this CSS code work for changing the font of just that one line?