DIV and H3 CSS
Posted: Fri Feb 26, 2016 5:01 am
Hi
So I have a simple bit of HTML. I have the H3 set just so, but I want to custom each of the two H3 tags to have set colors.
I thought it would be like this:
But it doesn't work.
So I have a simple bit of HTML. I have the H3 set just so, but I want to custom each of the two H3 tags to have set colors.
Code: Select all
<div class='mobile-bullets'>
<h3 class='smile'>What instant benefits ?</h3>
</div>
<div class='mobile-bullets'>
<h3 class='sad'>What instant downfalls?</h3>
</div>Code: Select all
.mobile-bullets h3
{
margin: 0px;
font-family: Titillium Web, SegoeUILightWF;
font-weight: 600;
font-size: 25px;
border-bottom: 1px solid #cccccc;
padding-bottom: 10px;
margin-bottom: 10px;
color: #422782;
}
.mobile-bullets sad h3
{
color: #ff0000;
}
.mobile-bullets smile h3
{
color: #009900;
}