Apply CSS only if the element is followed by another element
One thing I was faced with when working on CSS with dynamic data is to apply a padding only if the element had other elements following it. An example would be when you have a list. If you have only one <li> in the list, you don’t want to apply any padding. However, if you …
Read moreApply CSS only if the element is followed by another element