Hi there, I’m trying to work on my product titles as I noticed it extends over 4 lines on most mobile devices whereas it is only 3 lines on desktop and larger mobile devices.
I found the CSS selector and was able to change my font size by adding this to my base.css file:
.product__title h1 {
font-size: 36px;
}
However, it seems I am missing something, as when I make it 36px, it get’s significantly smaller on desktop and much much larger on mobile and then goes over 5 lines. If I use a low enough PX size, it looks good on mobile but terrible on desktop as it is far too small. I tried using EM too, but my coding knowledge is very basic and I seemed to have the same problem.
Can someone please help? What do I need to do to make it smaller on mobile but still keep it proportional on desktop. Thanks in advance!
The first is minimum, the middle one is preferred, and the last is maximum. The middle one has to be a relative unit (vw,vh, %, etc..), the first and last (min and max) can be fixed values (px, em)