Check out this informative resource on the various list-style-type
values at http://www.w3schools.com/cssref/playit.asp?filename=playcss_ol_list-style-type&preval=none.
While the value none
still leaves some horizontal space for an empty list symbol, I am looking for a way to eliminate this spacing so that text aligns properly without appearing as if it's in a list. My goal is to center the list items using text-align:center
, but the extra space disrupts the alignment. The use of <ul>
is necessary due to CMS requirements.
Essentially, I want the bullets to be hidden entirely when list-style-type:none
is applied, rather than just their visibility being hidden. How can I achieve this by changing the display property from hidden to none?