Skip navigation

First things first and last things last

First things first and last things last: CSS Shorts Weekly
First things first and last things last: CSS Shorts Weekly

What we’re talking about is first-of-type and last-of-type selectors in CSS. These structural selectors do exactly what they say—they allow us to select and style specific instances of elements within a parent. This is a great technique for styling the beginning and ending a string of items, such as links. The cool thing about this type of selector is that if another element type is in the same parent, this has no effect on this selector because it is based on the element’s type.

Resume Transcript Auto-Scroll
Skill Level Intermediate
2h 51m
Duration
39,755
Views
Show More Show Less
Skills covered in this course
Web Web Development CSS

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now