/ Published in: CSS
We use lists for all sorts of things, especiall navigation elements for which bullets don't make sense. Often, it is most convenient to remove bullet/list styles from all list elements globally. In fact many css resets do just that. However, there may be content areas where we do want bullets! The following css brings back the list styles for all list elements within a container with the class "bulletsAvailable". These values approximate the normal default browser behavior.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.bulletsAvailable ul, .bulletsAvailable ol {margin-left: 20px;} .bulletsAvailable ul {list-style-type: circle;} .bulletsAvailable ul li, .bulletsAvailable ol li {display: list-item; float:none; } .bulletsAvailable ul li { list-style-type:disc; } .bulletsAvailable ol li { list-style-type:decimal; }