Last active
October 24, 2015 17:19
-
-
Save rtivital/121d09b7f9f4781fe59c to your computer and use it in GitHub Desktop.
Список, разделенный запятыми
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Чтобы создать список, разделенный запятыми, | |
ul > li { | |
// достаточно присвоить всем элементам li свойство display: inline | |
display: inline; | |
// и добавить запятую после каждого элемента в списке, | |
// кроме последнего, с помощью after | |
&:not(:last-child)::after { | |
content: ','; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment