I’m having issues keeping consistent padding when shorter screen widths cause text to wrap. I’m editing the site wing tsun berlin for a client. Here is the link:
I’ve removed the line height style as you suggested, but on smaller devices where the text wraps that means the wrapped element of the line is compressed into the earlier unwrapped part. Any thoughts?
I’ve worked it out now. Your point about the line height style on both the text and the div was the key.
When I removed the line height from the text and just had it on the div, it meant that when the text wrapped the two lines were squashed together constrained by the size of the div.
When I removed the line height from the div and just had it on the text, the div responded to the text, so when the text wrapped both text and div took up more space.
The padding was always relative to the div and not the text.