0
I have a tag <pre>Oie</pre>
I wanted this text to have a maximum width of 595px word-wrap:break-word;
what I did was this
pre {
width:595px;
word-wrap:break-word;
}
I do it , but nothing happens, I just squeeze I do it
<pre>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</pre>
and the text does not break
our HOW DID YOU KNOW THIS? Because these codes are hard to write down
– Andressa Limão
@Andressalemon We keep learning. :)
– Sam
@Andressalemon I did an update on the reply. I removed the prefixed styles, I think you don’t need this.
– Sam
Thanks DVD, our I’ve never heard of this whitespace no course taught me :( programming is complicated
– Andressa Limão
Can you explain to me what white space is? I have researched here on the net the language is a little complicated :(
– Andressa Limão
Poxa me exlicar o que é o whitespace?
– Andressa Limão
@Andressalemon It treats how white spaces will be treated within the element. The value
pre-wrap;
preserves spaces and breaks the text when necessary. Blank spaces would be:olá_Mundo!
(1 blank space between "hello" and "World");Oi_____você!
(5 blank spaces between the two words)... thepre-wrap;
leaves the spaces as they are.– Sam