Yes you can do it using :nth-child(n+4)
In your case:
@media(max-width:768px) {
.list li:nth-child(n+4) {
display:none;
}
}
You can see this fiddle : http://jsfiddle.net/wgLCH/2/
Yes you can do it using :nth-child(n+4)
In your case:
@media(max-width:768px) {
.list li:nth-child(n+4) {
display:none;
}
}
You can see this fiddle : http://jsfiddle.net/wgLCH/2/