Display OL/UL list as comma separated sentence


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

Displays HTML list as a gramatically correct English sentence. \r\n\r\nFor example\r\n\r\n<ul class=\"commaList\">\r\n <li>one</li>\r\n <li>two</li>\r\n <li>three</li>\r\n <li>four</li>\r\n</ul>\r\n\r\nWould be displayed as: One, two, three and four.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.