2
<div class="intro-frases" >
<div class="row">
<div class="col-md-6">
<h1 data-segundos="4" class="frases pull-right" >TESTE 1</h1>
</div>
<div class="col-md-6">
<h1 data-segundos="5" class="frases">TESTE 2</h1>
</div>
</div>
<h1 data-segundos="0" class="frases">TESTE 3</h1>
<h1 data-segundos="11" class="frases">TESTE4</h1>
<h1 data-segundos="14" class="frases" style="font-size: 200px;">TESTE5</h1>
<div class="row">
<div class="col-md-6">
<h1 data-segundos="5.5" class="frases">TESTE 6</h1>
</div>
<div class="col-md-6">
<h1 data-segundos="6" class="frases">TESTE 7</h1>
</div>
</div>
</div>
CSS
.intro-frases h1:nth-child(1),
.intro-frases h1:nth-child(4) ,
.intro-frases h1:nth-child(7)
{
color: red;
font-weight: 600;
}
was to color in red and leave in bold the teste1, teste4 e teste7
, there’s something wrong with the code?
Works for me... https://jsfiddle.net/5j2erz59/1/ What browser are you using?
– Sergio
Chrome, here is coloring: TEST 1, TEST 2, TESTE5, TEST 6, TEST 7 and not only Test 1, Test 4 and Test 7 (it was to color and bold only these)
– denalioasis
This is wrong. Try coloring 1, 4 and 7 with different colors that you will understand. see separately for understanding: https://jsfiddle.net/5j2erz59/5/
– Bacco