Hi,
Is it possible to change the line spacing between text on a button when it wraps to two lines?
I have a row with a series of icons with buttons underneath. One of the buttons has 4 words which means it wraps to 2 lines. I want to change the line spacing on button text when it wraps to two lines.
Thanks,
Brian
Hey Brian,
We can give you CSS which applies at a certain pixel width, but not conditional CSS which would apply exactly when the text wraps. In order to give you accurate CSS then we would need to see the actual element.
Best regards,
Rikard
Hi Rikard,
Thanks for the reply!
The element is the 2nd button in labelled “SHE Policy” on the Home page. It needs to read “Sustainability Policy Statement”.
When it does it wraps to 2 lines and I need to control the default line spacing as it is quite large.
As always thank you for your amazing support!!!
Kind regards,
Brian
Hi Brian,
You can add the text that you need and we will adjust the button for you then.
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
I have done it!
Thank you for your help!
Brian
Will I be able to adjust it afterwards if necessary?
Hi Brian,
Thanks for that. It’s difficult to make that look good for just the one button unfortunately. I see that you have placed the elements in 1/5 elements, but you only have 4 buttons. Wouldn’t it be better if you placed them in 1/4 elements instead? Then the text would likely fit on one line, and you wouldn’t have to adjust anything using CSS.
Best regards,
Rikard
Hi Rikard,
There were 5 buttons initially and that may be the case in the future but for now I will take your advice and change the elements to 1/4.
Thank you for the assistance.
Kind regards,
Brian