tirsdag den 5. marts 2013

CSS Word-wrap

Hvis man skal være sikker på at word-wrap virker i alle browsere kan man med fordel benytte følgende CSS

<style> 
.divToWordWrap {
    -ms-word-break: break-all;
    word-break: break-all;

    word-break: break-word;

    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;

    width:400px;
</style>