# Multiline notifications

**URL:** <https://forum.radzen.com/t/multiline-notifications/2237>\
**Category:** Blazor Server\
**Created:** [December 19, 2019, 2:04pm UTC](https://forum.radzen.com/t/multiline-notifications/2237 "2019-12-19T14:04:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![timt](https://forum.radzen.com/user_avatar/forum.radzen.com/timt/32/2047_2.png) [@timt](https://forum.radzen.com/u/timt)\
**Post date:** [December 19, 2019, 2:04pm UTC](https://forum.radzen.com/t/multiline-notifications/2237/1 "2019-12-19T14:04:23Z")

</div>

Hi

Is it possible to create multi line notifications? I have tried adding \n and   
 to the message string but no joy.

Thanks  
Tim

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [December 19, 2019, 4:32pm UTC](https://forum.radzen.com/t/multiline-notifications/2237/2 "2019-12-19T16:32:15Z")

</div>

Hi Tim,

Not possible at the moment - I'll check to see if we can enabled this!

Best Regards,  
Vladimir

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [December 19, 2019, 6:04pm UTC](https://forum.radzen.com/t/multiline-notifications/2237/3 "2019-12-19T18:04:11Z")

</div>

You can add the following CSS to `server\wwwroot\assets\css\styles.css`:

```auto
.ui-growl-message {
  display: flex;
}

.ui-growl-title {
  margin-right: 8px;
}

.ui-growl-message p {
  white-space: pre-line;
}

```

It would then display `\n` as new lines:

 ![image](https://forum.radzen.com/uploads/default/original/2X/2/22b170b6793676cfcf084f46c2f9c3933771353b.png)

 ![image](https://forum.radzen.com/uploads/default/original/2X/5/5ab6e595a6aae04318cad1a592f91d64ebe76d98.png)

---

<div class="post-metadata">

**Author:** ![timt](https://forum.radzen.com/user_avatar/forum.radzen.com/timt/32/2047_2.png) [@timt](https://forum.radzen.com/u/timt)\
**Post date:** [December 20, 2019, 11:31am UTC](https://forum.radzen.com/t/multiline-notifications/2237/4 "2019-12-20T11:31:49Z")

</div>

Brilliant, works a charm! thanks for your always excellent customer support.

Tim

---

<div class="post-metadata">

**Author:** ![Peter\_Chikov](https://forum.radzen.com/user_avatar/forum.radzen.com/peter_chikov/32/19476_2.png) [@Peter\_Chikov](https://forum.radzen.com/u/Peter_Chikov)\
**Post date:** [January 16, 2025, 9:40pm UTC](https://forum.radzen.com/t/multiline-notifications/2237/5 "2025-01-16T21:40:32Z")

</div>

> [@korchev](#):
>
> ```auto
> .ui-growl-message {
> display: flex;
> }
> 
> .ui-growl-title {
> margin-right: 8px;
> }
> 
> .ui-growl-message p {
> white-space: pre-line;
> }
> 
> ```

Doesn't seem to work for me.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 17, 2025, 9:59am UTC](https://forum.radzen.com/t/multiline-notifications/2237/6 "2025-01-17T09:59:07Z")

</div>

Hi @Peter_Chikov,

Indeed this CSS won't work as it using a 5 year old rendering which has been retired long ago 🙂

Now you can use `Style="white-space: pre-wrap"`:

```auto
new NotificationMessage { 
    Severity = NotificationSeverity.Info, 
    Style="white-space: pre-wrap",
    Detail = "Info\nDetail"
}

```

Or if you want to enable it globally:

```auto
.rz-notification-content {
   white-space: pre-wrap;
}

```
