2.3kViews
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
How Dangerous Is Trekking To Everest Base Camp In 2023 ? | Best Travel Tips & Advice
Top And Best 7 Steps For Profitable Digital Marketing Strategy – 2023 (downloadable)
Top 5 Best SEO Companies and Firms in Nepal – 2022