Codepen and Questions

Continuing the discussion from Codepen and Questions:

I kept looking at ChatGPT answers. A suggested solution was to set a line-height: 1.1; which worked. I ultimately changed it 1.4 and got the ss results. I like it. It gets rid of ‘magic numbers’ but I don’t know if it works across platforms.

What do you think?

Yes I just explained to you in the other thread that if margins and padding are not involved then the space between items is controlled by the line-height (also assuming no dimensions have been set and ignoring the half leading on glyphs etc which is outside of your control). .

It’s fine to change the line height but be aware that if you go much less than 1 then words may overlap when they wrap.

1 Like