:last-child Back

  • :last-child is a pseudo-class which selects the target element if it is the last child of some other element.
  • That is, :last-child will match the element only if it is the last child of its parent.
  • It's similar with first-child

Case: learning :last-child

See the Pen BjmrXR by aleen42 (@aleen42) on CodePen.

Copyright © aleen42 all right reserved,powered by GitbookUpdated time: 2016-10-09 06:25:23