0

Собственно вопрос в том, как сделать, чтобы длинное слово (заголовок) переносилось внутри контейнера flex

html:

<div class="flex_container">
  <h1>Loremipsumdolorsitametconsectetur</h1>
</div>
<div class="noflex_container">
  <h1>Loremipsumdolorsitametconsectetur</h1>
</div>

css:

.flex_container {
  background-color:yellow;
  display:flex;
  width:200px;
  height:200px;
}

.noflex_container {
  background-color:yellow;
  width:200px;
  height:200px;
}
h1 {
    overflow-wrap: break-word;
}

1 ответ 1

1
h1 {
  word-break: break-all;
}
2

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.