Mam ten HTML:

<div style="word-wrap: normal; width: 20rem; max-width: 30rem; border: 1px solid red;">
  already, always, very - a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ).
</div>

Chciałbym, aby tekst mógł owijać się wokół wewnątrz, jeśli <div>. Jednak przelewa się i nie robi żadnego owinięcia.

Czy istnieje sposób, w jaki mogę zawijać, zamiast płynąć z prawej strony <div>?

0
user1464139 15 luty 2017, 17:18

2 odpowiedzi

Najlepsza odpowiedź

Tekst nie jest przepełniony, możesz go zobaczyć z tłem. Możesz uczynić go bardziej regularnym, dodając

text-align: justify; text-align-last: left
<div style="word-wrap: normal; width: 20rem; max-width: 30rem; background: #cacaca">
      already, always, very - a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ).
    </div>


<div style="word-wrap: normal; width: 20rem; max-width: 30rem; text-align: justify; text-align-last: left">
      already, always, very - a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ).
    </div>
0
KeySee 20 luty 2017, 08:22

Chcesz to?

<div style="word-wrap: normal; width: 15rem; max-width: 30rem; float: left; padding-right: 1rem;">
  already, always, very - a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ).
</div>
<div style="word-wrap: normal; width: 15rem; max-width: 30rem; float: left;">
  already, always, very - a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ).
</div>
-1
grinmax 15 luty 2017, 14:27