gpbaculio
gpbaculio

Reputation: 5968

how to make text not overlap it's container?

i have this code:

<li style="padding: 23px 5px 23px 19px; width: 100%;">
  <div style="min-width: 50%;">
    Email Address
  </div>
  <div style="min-width: 50%;">
    [email protected]
  </div>
</li>

and the result looks like this: enter image description here as you can see on the bottom cell, i would want the text that overlap to come on bottom. i tried flex-wrap: nowrap; with no success. Help?

Upvotes: 0

Views: 1250

Answers (1)

Friday Ameh
Friday Ameh

Reputation: 1684

Add this css

div{ white-space:normal; word-break: break-all}

Upvotes: 2

Related Questions