In the following code I have a flex row container with a nested flex column container. In the flex column container it seems as though word wrap does not work.
.profile-header {
padding-bottom: 20px;
}
.profile-header-container {
display: flex;
justify-content: center;
border: 1px solid purple;
}
.picture {
height: 175px;
width: 175px;
background-color: orange;
flex-shrink: 0;
}
.info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.name {
font-size: 24px;
border: 1px solid red;
}
.button {
height: 50px;
width: 150px;
background-color: blue;
}
<div class="profile-header">
<div class="profile-header-container">
<div class="picture">
</div>
<div class="info">
<div class="name">
reallylongfirstname reallylonglastname
</div>
<div class="button">
</div>
</div>
</div>
</div>
The .name
element doesn't seem to want to word wrap in internet explorer, where it seems to work fine in chrome. I checked flex bugs, specifically, bug #2, but setting max-width: 100%
didn't seem to work. Is there a way I can make this work?