Search results
Mar 25, 2024 · The :last-child CSS pseudo-class represents the last element among a group of sibling elements. Try it. Syntax. css. :last-child { /* ... */ } Examples. Basic example. HTML. html.
Code sample
p:last-child {color: lime;background-color: black;padding: 5px;}Official Youtube Channel of LAST CHILD, an INDIE ROCK/POWER POP band from Jakarta, INDONESIA. Managed by dr.m. We are VIRGOUN, DIMAS, and IPANK.
Definition and Usage. The :last-child selector matches every element that is the last child of its parent. Tip: p:last-child is equal to p:nth-last-child (1). Browser Support. The numbers in the table specifies the first browser version that fully supports the selector. CSS Syntax. :last-child { css declarations; } Demo.
Sep 6, 2011 · The :last-child selector allows you to target the last element directly inside its containing element. It is defined in the CSS Selectors Level 3 spec as a “structural pseudo-class”, meaning it is used to style content based on its relationship with parent and sibling content.
CSS :last-child selector. This CSS tutorial explains how to use the CSS selector called :last-child with syntax and examples. Description. The CSS :last-child selector allows you to target an element that is the last child element within its parent. Syntax. The syntax for the :active CSS selector is: element:last-child { style_properties }