I have the following HTML code:
<ul class="grid_1330 margin-auto">
<li class="homeListagemLi">
<div class="homeListagemDiv">
<ul>
<li><img src="./imagens/pessoa.jpg" height="220" width="220" /></li>
<li><span>teste1</span></li>
<li><span>teste2</span></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</li>
</ul>
So here's my CSS:
.homeListagemDiv>ul>li>img{width: 220px;height: 220px;}
.homeListagemDiv>ul>li>span{
color: #00aeef;
font-size: 15px;
font-family: "open_sansbold";<sp
}
I want it when, span
is the second, there inside the LI, it accepts other formatting, different from the one I put in the CSS. Of course, I could create a class and put it in li
, but, does it have another way?