Button large text, second line

4 replies · opened Jan 4, 2017

Cchris2015Jan 4, 2017

text
[MY BUTTON LONG TEXT LONG TEXT LONG TEXT LONG TEXT](#)

I wanna "MY BUTTON LONG TEXT" if not fit on one line then create second line and continue the text.

MY BUTTON LONG TEXT LONG
TEXT LONG TEXT LONG TEXT

SSemicolon WebSTAFFJan 5, 2017

Hello,

This is Definitely Possible. You can simply add the style="height: auto; white-space: normal;" Attribute to the Button Code. Example:

[MY BUTTON LONG TEXT LONG TEXT LONG TEXT LONG TEXT](#)

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Mmsource1Jan 6, 2017

Hello!

I used the code above on my one-pager as shown below:


[ This is really really long text with no meaningful data only to test if this work but has no special meaning at all...only a test to see if this really really works!](#)

This indeed makes the long text to extend to a second line within the button. However, it creates a gap between the lines (as shown in the attachment).

I tried using <br> like in:


[ This is really really long text with no meaningful data only to test if this work but has no special meaning at all...only a test to see if this really really works!](#)

Also tried changing the for

 like in:

This is really really long text with no meaningful data only to test if this work but has no special meaning at all...only a test to see if this really really works!

But still get the same gap between the lines. I would like to include to lines of text within the button - and even different styles for each line. Something like the second attachment - in which I may get the lines closer.

PS: I also tried changing the line-height attribute on the css without luck.

How can I do this?

Mmsource1Jan 7, 2017

Nevermind...I used the line-height attribute on the button directly (instead of the style.css) and got it to work. Following the code in case it may be of any help:


[ This is really really long text with no meaningful data only to test if this work but has no special meaning at all...only a test to see if this really really works!](#)
SSemicolon WebSTAFFJan 9, 2017

Hello,

Yes! Setting the line-height Property will fix this for you. Really Glad that your issues were resolved. Thanks for your Patience.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard