Style a range of elements

An example showing how to style a range of elements from 3rd to 7th using Tizen 2.3.
<style>
  ul li:nth-child(n+3):nth-child(-n+7) {
    background: yellow;
  }
</style>
<ul>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ul>

Responses

0 Replies