# Automatic newline in label

**URL:** <https://forum.servoy.com/t/automatic-newline-in-label/12867>\
**Category:** Classic Servoy\
**Created:** [September 14, 2010, 9:11am UTC](https://forum.servoy.com/t/automatic-newline-in-label/12867 "2010-09-14T09:11:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@michel](https://forum.servoy.com/u/michel)\
**Post date:** [September 14, 2010, 9:11am UTC](https://forum.servoy.com/t/automatic-newline-in-label/12867/1 "2010-09-14T09:11:19Z")

</div>

When a label is placed on a form (using solution model) and I surround the content of the label with and I see automatic newlines in the smart client but not in the webclient (see examples). How can I achieve the same result in the webclient?[attachment=1]smart.png[/attachment][attachment=0]web.png[/attachment]

 ![web.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/1/18119399a9b560a7dbf0eeed99dd602efa2f8a3b.png)

 ![smart.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/7/76ba24cc8b8709e62854ec69036afe2c640ae3f6.png)

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [September 14, 2010, 2:00pm UTC](https://forum.servoy.com/t/automatic-newline-in-label/12867/2 "2010-09-14T14:00:26Z")

</div>

Hi Michel,

You could put it inside a

 that has a specific width. This should force it to wrap.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@michel](https://forum.servoy.com/u/michel)\
**Post date:** [September 14, 2010, 3:26pm UTC](https://forum.servoy.com/t/automatic-newline-in-label/12867/3 "2010-09-14T15:26:05Z")

</div>

No go. The problem was that \_label.dataProviderID was set to a form-variable. This form-variable contained the html. No wrapping was done also putting the text in a

 or 
 element with a fixed width didn’t help. After I changed this to putting the html in the \_label.text instead of using the dataProvideId it worked okay.  
Thanks for the suggestion.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [September 14, 2010, 7:30pm UTC](https://forum.servoy.com/t/automatic-newline-in-label/12867/4 "2010-09-14T19:30:47Z")

</div>

if you want newlines in html you should use
