So, I am a beginenr and I wrote a set of styles like:
<code>.heading-background .author-class .publish-time{
border: 2px solid black;
}
</code>
<code>.heading-background .author-class .publish-time{
border: 2px solid black;
}
</code>
.heading-background .author-class .publish-time{
border: 2px solid black;
}
In index.html I have 3 different heading elements with these different classes; heading-background, author-class and publish-time. I want a border on all of them so I was wondering how to select em all and write only a single line for all of em using different classes.
I tried the aboove code and it didnt work, no error but no result also
New contributor
Talha Saleemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.