Open main menu

Template:Cslist/styles.css

< Template:Cslist
Revision as of 17:14, 16 January 2019 by wikipedia>RexxS (implement sslist class for semicolon separated list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* make an inline list with either comma or semicolon separators */
ul.cslist, ul.sslist {
	margin: 0;
    padding: 0;
    display: inline-block;
    list-style: none;
}
.cslist li, .sslist li {
    margin: 0;
    padding: 0 0.25em 0 0;
    display: inline-block;
}
.cslist li:after {
    content: ", ";
}
.sslist li:after {
    content: "; ";
}
.cslist li:last-child:after, .sslist li:last-child:after {
    content: none;
}