Home > Software engineering >  How to make div with text to expand if the text does not fit there
How to make div with text to expand if the text does not fit there

Time:02-10

My page: page

Html code for message block:

<div >
      <div >
        <p>{{message.text}}</p>
      </div>
    </div>

Css styles:

.text-box {
  display: flex;
  margin-left: 10px;
}

message-body does not have any styles from css

CodePudding user response:

.text-box { display: flex; margin-left: 10px; word-break: break-all; }

  •  Tags:  
  • Related