There is no :nth
selector in css, you need to use :nth-child
pseudo-class selector. Then update the selector to get the rest of the images(101, 102,...
=> n + 101
) and then apply the style to hide them.
/* set default styles here */
.image {
display:inline-block;
}
/* following would select 101, 102,... since value of 'n' starts from 0 */
.image:nth-child(n + 101){
display:none;
}
In case there are some other siblings tags then use
:nth-of-type
pseudo-selector.
.image:nth-of-type(n + 101){
display:none;
}
Also refer : Does "display:none" prevent an image from loading?