In the code below the paragraphs are not getting wrapped on small screen while using Internet Explorer 11. By searching for solutions I found that if flex-basis:100%
or width:100%
is applied on .fix
div then the paragraphs get wrapped but this method breaks my layout. What can be the possible solution that will
- Keep my layout intact
- The paragraphs will get wrapped on small screen
Output of the Internet Explorer 11:
.container-1 {
display: flex;
justify-content: flex-end;
border: 1px solid red;
}
.container-2 {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
border: 1px solid blue;
}
<div class='container-1'>
<div class='fix'>
<div class='container-2'>
<p>Center Aligned Content</p>
<p>Some content goes here. Some content goes here. Some content goes here. </p>
</div>
</div>
</div>