How to increase the line spacing in Text field?

  • Profile Image
    Whitegates
    Asked on September 13, 2017 at 02:34 AM

    Hi how can I change the line spacing please

    Thanks

    Chris

  • Profile Image
    Nik_C
    Answered on September 13, 2017 at 03:54 AM

    If you were referring to Text field and writing in it, you can enter the new line by pressing Enter key or by pressing Shift+Enter key:

    With enter, space will be bigger and with Shift+Enter there will be no space. Also, there is line spacing CSS rule you could use, here is a useful guide: https://www.w3schools.com/cssref/pr_dim_line-height.asp.

    For example: 

    <p style="line-height: 50px;">test test test test&nbsp;<br /><br /></p>

    <p style="line-height: 20px;">pressed enter<br />pressed shift+enter test</p>

    <p>&nbsp;</p>

     

    If you have any further questions please let us know. 

    Thank you!