Home Forums General XMetaL Discussion List numbering strangeness in the editor Reply To: List numbering strangeness in the editor

Derek Read

Reply to: List numbering strangeness in the editor

I'm not sure I understand why it would make sense to set list-style-type on a list item. If you have different types of lists then you would do something like this:

list[type=”ordered”] {
  display: block;
  list-style-type: decimal;
}

list[type=”unordered”] {
  display: block;
  list-style-type: disc;
}

list-item {
  display: list-item;
  margin-left: 1cm;
}

The settings you have may give you the correct appearance, but I don't think it is the intended usage (if you read the CSS recommendation this might be more clear — essentially the reason why the “display:list-item” property exists is to use it on list-item-like elements that have a container, and the container is where you set the list-style-type).

Reply

Products
Downloads
Support