Angular 2 - Toastr Custom Location

1.3k Views Asked by At

I'm using toastr-ng2 and I want the location of the toast to be under the header of my webpage (e.g. style="margin-top: 30px").
I can't seem to find the settings for this option. Is this possible?

1

There are 1 best solutions below

1
On BEST ANSWER

I found an easy way to do this. By inspecting the page element when the toastr is displayed, you can get the css that's used. Then modify the code and add it to the styles.css file which can overwrite the default toastr settings.

E.g.

#toast-container.toast-top-center .toast,
#toast-container.toast-bottom-center .toast {
    margin-top: 50px;
}