Increase space between words to occupy the width of the div?

1

I have a text that I would like to "stretch", that is, leave spacing between letters until it reaches the end of div , is there any way to do this? The div must have height static. I can use both Jquery and CSS .

I have already looked at several sites but I saw only increase font-size but that's not what I want.

    
asked by anonymous 16.10.2017 / 18:21

1 answer

0

It has letter-spacing elements for width, line height for height and word-spacing for word space in css, I do not know if that's what you want:

p {
    letter-spacing: 5px;
    line-height: 30px;
    word-spacing: 50px;
}
<p>Eu tenho um texto que eu gostaria de "esticar", ou seja, deixar espaçamento entre letras até que chegue ao fim da div, existe alguma forma de o fazer? A div tem de ter height estática. Posso usar tanto Jquery como CSS.</p>
    
16.10.2017 / 18:33