I don't want to use !important or write new rule for every case which can handle with helper classes. For example I want to do it;
HTML
<body id="sameId">
<div class="wrapper">
<div class="article text-center text-bold">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
</body>
CSS
/* Helper Classes */
#sameId .text-center {
text-align:center;
}
#sameId .text-bold {
font-weight: bold;
}
/* Article Styles */
.wrapper .article {
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ddd;
text-align:left;
font-weight: normal;
}
Does causes a problem in the future using same id on body tags of all pages for greater css specificity?