HI there!
I was reading a FCC news article on CSS hacks and I had a question about No.4
Here is the article: 10 CSS Hacks Every Developer should Know
It says
If you want some of your page posts to look different from others, you can use the .single-post
script to override the site’s CSS style.
Here is the example it provides:
.single-post .entry-title {
font-size: 24px;
font-weight: 750;
color: red;
}
How does this work exactly?
How is this different from just creating my own class, adding some styles to it and applying it to those HTML elements?
When I tried researching online, all of the results were in the context of wordpress.
Does this work outside Wordpress?
Maybe I am just missing something basic but if someone could clarify things that would be great.
Thanks!