Change styles of First/Last Elements in CSS

/ Published in: CSS
Save to your folder(s)

Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.