As shown in the GIF below, when adjusting the window size, the image on the left grows and shrinks as intended. To achieve this effect, I placed a line inside the "image wrapper" that aligns with the text block on the right. Currently, the line is positioned absolutely with percentage values for left and top. Is there a way to rotate the line to ensure it lines up with the title consistently, regardless of the image size? Can rotation be done using percentages? (I doubt it)
One concern is browser compatibility. While a CSS-only solution would be preferred, a JavaScript alternative could work too, but I'm unsure how to implement this with JS.
Any additional suggestions are appreciated.
GIF Example: https://i.sstatic.net/QMW4n.gif
Example code used: https://jsfiddle.net/01sxrjkr/ *Ensure the preview window is less than 768px