Is it possible to use the same id attribute value in multiple posts on a Blogger platform?
For example:
Blogger post 1
<div class="panel-heading" id="myPost">some content</div>
Blogger post 2
<div class="panel-heading" id="myPost">some content</div>
Blogger post 3
<div class="panel-heading" id="myPost">some content</div>
And
Blogger post 6000
<div class="panel-heading" id="myPost">some content</div>
This is what I'm doing because the CSS for myPost
exists in the blogger template, not in individual posts.
The CSS is in the template, not in the posts of Blogger
<style> #myPost {background-color: red;} </style>
I am running a dictionary blog and I want to avoid having to change the CSS in every single post. Instead, I prefer to make changes in the Blogger template. When I use the class attribute, my CSS does not work for myPost
. However, when I include some content, the code works and changes the background color of panel-heading. Unfortunately, Bootstrap panel-heading does not offer many customizable color options.