Search code examples
javascriptjquery-pluginsnoty

How would i set the height and width of a noty notification


Is there anyway to set the height and width of a noty notification. Here is my code currently:

$(document).ready(function () { 
        noty({
            layout: 'topRight',
            type: 'alert',
            text: "<a href='C:\\Users\\dah\\Documents\\AlertJqueryNP\\alertjquery.html' target='_blank'>Alerts:"+count+"</a>",
            template: '<div class="noty_message"><span class="noty_text"></span></div>',
            closeWith: ['button'],
            dismissQueue: true, 
            timeout: false
        });

Solution

  • You could do it with CSS. Whatever width and height you want, just set that in the CSS and it should work.

    .noty-message{
        width:100px;
        height:100px;
    }