View Single Post
Old 01-26-2023, 03:33 PM   #19
Simons Mith
Member
Simons Mith began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2020
Device: none
Quote:
Originally Posted by Karellen View Post
Maybe try display:none; speak:none;

display :
Element is removed from the normal flow and hidden; the space it occupied is collapsed

visibility:
Element is hidden from view, but is not removed from the normal flow

No, display: none doesn't work, because if it's not displayed at all, it doesn't increment the list counter. You have to display the list elements, but make them zero size. One of the reasons I think this is such a hideous hack.

I do prefer not to use fake paragraphs as <li>s though; I prefer to use a <ul> with a custom bulletless style and manually put numbers in that. At least it's a list then.
Simons Mith is offline   Reply With Quote