HTML CSS examples for CSS Widget:Border
Add border to a range of list item with nth-child(4n+5)
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li:nth-child(4n+5) { border-top:2px solid Chartreuse; } </style> <!-- ww w. j av a2s .co m--> </head> <body> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> <li>8</li> <li>9</li> <li>10</li> <li>11</li> </ul> </body> </html>