Here’s two Similaire code one using id and the other using class :
Css code {1} :
.section{ margin-bottom:25px; }
.last{ margin-bottom:0px; }
.section-name{ font-family: 'Sulphur' ; font-size:20px; padding-bottom:10px; color:#2F6AB3; }
Html code {1} :
<h2 class="section-name">Personal Details</h2>
Css code {2} :
.section{ margin-bottom:25px; }
.last{ margin-bottom:0px; }
#section-name{ font-family: 'Sulphur' ; font-size:20px; padding-bottom:10px; color:#2F6AB3; }
html code {2} :
<h2 id="section-name">Personal Details</h2>
In first Code {1} ,class, it didn’t showed the right Font familly, “Sulphur”.
But in the seconde Code {2} it Display the right font : “Sulphur”.
So I need to know why ? for two reason, two improve my developping skills and because i here i want to use the class.
When I test this code, it works fine for me :
You should show us your complete code.