top of page

Divide a string into two lines by the next 'space' character after its midpoint.

This is useful for centered text. It assumes there are space characters in the string to split from, that occur in the second half of the string. To improve this, an extra condition can be given to handle if the string is shorter than the desired line length, so it only splits longer strings.



Example:




 

Comentarios


Featured Posts
Recent Posts
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square

Follow Tom

  • gfds.de-bluesky-butterfly-logo
  • facebook-square

​Copyright 2014 and beyond and beforehand

bottom of page