unordered list not worrking
-
i have searched this forum and didn’t find any solution to this.
my WordPress blog list does not indent properly if the list element’s content enters the second line. i found a fix on stackoverflow https://stackoverflow.com/questions/10428720/how-to-keep-indent-for-second-line-in-ordered-lists-via-css, which i implemented as shown below:.entry ol,.entry li { margin: 0; padding: 0; } .entry ol { counter-reset: foo; display: table; } .entry li { list-style: none; counter-increment: foo; display: table-row; } .entry li::before { content: counter(foo) "."; display: table-cell; text-align: right; padding-right: .5em; padding-left: .5em; } .entry ul li { list-style: inside disc; list-style-image: none; line-height: 19px; }
after the above implementation, i got the proper indentation for my list, however, whenever i try to use an unordered it tends to appear as an ordered list. even worse, when i try to use and unordered list as a sublisting within an ordered list, (things get crazy), it appears as a continuation of my ordered list instead of appearing as an unordered.
see an example in the blog i am currently working on:
- The topic ‘unordered list not worrking’ is closed to new replies.