Center the Notification Message

Is there a way that I can display this message in the center of the screen?

Hello @jayjaymuller

If you use the Style-Property you should be able to display it in the center of the screen:

NotificationService.Notify(new NotificationMessage()
{
	Severity = NotificationSeverity.Success, // your severity
	Summary = "Search Customer",
	Detail = "Please enter an email address or cellphone number!",
	Duration = 5000, // your duration
	Style = "position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999;"
});

This positions the NotificationMessage in the center of the screen.

PS: Its not possible to add styles if you implemented it like this:

NotificationService.Notify(
    NotificationSeverity.Success, 
    "Search Customer", 
    "Please enter an email address or cellphone number!", 
    5000);