Home › Forums › CSS › Detecting and conditionally hiding end-of-line character on wrap › Reply To: Detecting and conditionally hiding end-of-line character on wrap
January 5, 2015 at 10:35 am #192251
It can be done, but it’s a little hacky and it will only work when the cities are aligned left.
Put all the items in a wrapping DIV. Make the asterisk appear BEFORE every item — even the first one. Then shift everything a little to the left, so that every asterisk that appears as the first character of a line, will be hidden from view.
See http://codepen.io/senff/pen/XJNBLa (wrapping DIV has border just to show where it’s at).