This is for Salesforce CPQ Template Content. I have a spacing issue when using the li tag. If the item is too long and is forced onto more than one line, it doesn't take into account the style="margin-..." attribute. I need uniformed spacing between all list items whether they are one line or multiple lines per item, but do not know how to achieve this.Spacing Issue

2 Answers 2


You can apply css class on ordered or unordered list to make list item's height of same size.

ul li {
  • I've used <style type="text/css">ul li { line-height:30px } </style> but it only applies to the first line of each list item and not the second if there is a newline for that list item.
    – Jeff
    Commented Jun 5, 2019 at 13:14
  • It will work for all list items. See example w3schools.com/code/tryit.asp?filename=G4QLLDDD1FNW. If not then please share sample like this so that i can check and help. Commented Jun 5, 2019 at 13:26

I ended up faking the listed items inside a padded table.

  • This should be added to the question itself - can you please edit your question to include the fact that it's about CPQ? You can also add a note in the question that the padded table was your workaround, but it's not really an "answer" to your question. Thanks! Commented Jun 11, 2019 at 14:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .