Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#192251
Senff
Participant

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).