Sass FunctionsLesson 11Free preview
Sass List
This lesson is part of SASS · All levels
Summary
Sass treats multiple values as lists, i.e. a collection of items separated by spaces or commas. Built-in lists such as length, nth, set-nth, join, append, index, and separator help manage the set of values. A list is useful for defining a color series, a font list, or a set of values in a mixture.
Key points
- The list can be separated by commas or spaces depending on the spelling
- Length counts the number of items, nth takes the items at a certain position
- Join combines two lists, append adding items at the end
- Index returns a value position in the list
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.