Hello!
I used the code above on my one-pager as shown below:
<a href="#" class="button button-border button-light button-rounded" data-scrollto="#section-works" data-easing="easeInOutExpo" data-speed="1250" data-offset="70" style="height: auto; white-space: normal;"> 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!</a>
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:
<a href="#" class="button button-border button-light button-rounded" data-scrollto="#section-works" data-easing="easeInOutExpo" data-speed="1250" data-offset="70" style="height: auto; white-space: normal;"> 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!</a>
Also tried changing the for
like in:
<pre href="#" class="button button-border button-light button-rounded" data-scrollto="#section-works" data-easing="easeInOutExpo" data-speed="1250" data-offset="70" style="height: auto; white-space: normal;"> 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!</pre>
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?