Brak wdów w tekście

w html za pomocą

 
 -ms-word-break: break-all;
     word-break: break-all;

     /* Non standard for WebKit */
     word-break: break-word;

-webkit-hyphens: auto;
   -moz-hyphens: auto;
        hyphens: auto;
 (function($){ $.fn.removeOrphans = function(){ if($(this).length > 0) { var $html = $(this).html(); $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); // stosując wyrażenie regularne, do każdej pojedyńczej litery // posiadającej z obu stron spacje, dodajemy encje  , // czyli popularną "twardą spację" $(this).empty().html($html); } } })(jQuery); $(document).ready(function() { $('#page-box-right').removeOrphans(); $('#box-offer-right').removeOrphans(); $('.team-content').removeOrphans(); $('#boxs-aside-page').removeOrphans(); $('#box-category').removeOrphans(); });