Loading…

How to write css for 3rd child of every <ul> tags?

nth-child(n) : It matches every element that is the nth child, regardless of type, of its parent.

Example

                                        

ul:nth-child(3) {
background: red;
}

 

Suggest An Answer

No suggestions avaliable!

Latest post from css interview questions

Ask Question