How can I wrap two rows at once / together?
I'm making a songbook to be opened on mobile, in browser.
I want that the chords stay in the line above the lyrics and each pair of lines should wrap to a new line together instead of going off screen. It should be easy to zoom without the content going off screen (on mobile). See code example below.
However, my approach does not work on mobile, because the lines of text are not wrapping to a new line when the page is scaled. Thanks to a comment of yainspan I now understand that the pinch-to-zoom scales the page, and does not resize the elements.
What am I missing to make this work? Is there maybe a simpler solution?
OLD Code: https://onecompiler.com/html/3xvq5ew28
NEW Code: in the answer below (click this to jump to it)
(The snippet with the OLD code that was here is outdated and it's been removed. This revision contains said OLD code)
Comments
Post a Comment