3.0kViews
0
Shares
Is nth child only for li,
I have seen many online tutorial and css made. Mostly i found that nth child is use for li. but it is not compulsory that nth child is only for li tag. You can use for general tag live div,p,span and so on.
We can use advance feature then what we general use of nth child. Only odd and even is not its limit.
Some of Advance way of using nth child are
ul li:nth-child(3n+3) {
color: #ccc;
}
ul li:nth-child(5) {
color: #ccc;
}
Here is a website link that show how to use nth child in advance way with diagram and code.
More Post
Extract the Youtube Tags & Description from a Youtube Video
Fix Elementor stuck on loading screen 2023 – [INSTANTLY] Solution 1
Discover 16 Days Best Everest Base Camp Trekking with itinary for 2023/2024