Сообщение от sovsem-nub
|
закрасить с 5 по 8-ой элемент в один стиль,
|
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style>
.tovarblock tw:nth-child(n+5):nth-child(-n+8) {
color: red;
}
</style>
</head>
<body>
<div class="tovarblock">
<tw class="col-4 simpleCart_shelfItem">1</tw>
<tw class="col-4 simpleCart_shelfItem">2</tw>
<tw class="col-4 simpleCart_shelfItem">3</tw>
<tw class="col-4 simpleCart_shelfItem">4</tw>
<tw class="col-4 simpleCart_shelfItem">5</tw>
<tw class="col-4 simpleCart_shelfItem">6</tw>
<tw class="col-4 simpleCart_shelfItem">7</tw>
<tw class="col-4 simpleCart_shelfItem">8</tw>
<tw class="col-4 simpleCart_shelfItem">9</tw>
<tw class="col-4 simpleCart_shelfItem">10</tw>
<tw class="col-4 simpleCart_shelfItem">11</tw>
<tw class="col-4 simpleCart_shelfItem">12</tw>
<tw class="col-4 simpleCart_shelfItem">13</tw>
<tw class="col-4 simpleCart_shelfItem">14</tw>
<tw class="col-4 simpleCart_shelfItem">15</tw>
<tw class="col-4 simpleCart_shelfItem">16</tw>
<tw class="col-4 simpleCart_shelfItem">17</tw>
<tw class="col-4 simpleCart_shelfItem">18</tw>
</div>
</body>
</html>