Hi I have a question about css. I want to change the color the first element of class 'active' which is "3".
This is my code, but it doesn't work.
.item.active:first-child {
color: red
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="item clone" style="width:250px">1</div>
<div class="item clone" style="width:250px">2</div>
<div class="item active" style="width:250px">3</div>
<div class="item active" style="width:250px">4</div>
<div class="item active" style="width:250px">5</div>
<div class="item" style="width:250px">6</div>
<div class="item" style="width:250px">6</div>
And Is there any way to solve this problem with Jquery???
Please help.