Updated on Kisan Patel
In this example we are going to have a look at the :last-child css selector.
Syntax
[tag/class]:last-child { css declarations; }
The :last-child
selector of css is used to match every element that is the last child of its parent.
The CSS :last-child
selector is compatible with all modern browsers, except versions of IE under 9.