I have a plugin that displays a profile section, and I plan to wrap it with ol> li. I want the list number style using a different font size / style / color. But if I do, the font style will spread / cascade into the profile. I do not want to redo every text inside the profile again. So is it possible to prevent the font style from spreading to stream elements?
<style>
#rank li{
font-size:50px;
font-style: italic;
font-family: serif;
font-weight: bold;
width:70px;
margin-right:10px;
text-align:center;
}
</style>
<ol id="rank">
<li>
<div class="profile">
</div>
</li>
</ol>
EDIT: Sorry, I'm exaggerating "repeating each text." I think that if I need to change the profile style again, I will need to know the default font styles outside ul and apply them in the div. It is not so much, but in the future two places need to be changed in order to maintain a common style.
source
share