KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm currently using ellipsis to truncate an order list's items which are more than one line long. However, the li's that are too long and require an ellipsis automatically have the number on the left removed. Is there a way to prevent this from happening? Without the css, the list-items have numbers. <style> #test li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } </style> <ol id="test" style="width:100px;"> <li>test1</li> <li>test1</li> <li>toooooooooooooooooo loooooooooooooooooonnnnnnnnnnnnnnggggggg</li> <li>test1</li> <li>test1</li> <li>test1</li> </ol>
Tags (comma-separated)
Save Edits
Cancel