Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

Flexbox on text not wrapping to new line [closed]

$
0
0

I'am having troubles to add a flexbox with text that wrap when width is not enough large.

For example, on large page :

Red Blue

And on small webpage

RedBlue

Actually :

  • A horizontal slider is added, the blue element is not wrapped under the red one.
  • Text is scaling on small webpage. (Could be wrapping, not a big issue)

This example is taken from here.

main {  border: thin solid black;}article {  display: flex;  flex-wrap: wrap;  flex-direction: row;}article header {  width: 5em;  margin-right: 2em;  background-color: red;}article section {  background-color: blue;  flex-basis: 200px;  flex-grow: 1;}
<article><header>    home<br>    about<br>    feed<br></header><section>    What is Lorem Ipsum?    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.    Why do we use it?</section></article>

I would really appreciate some help ^^", thanks a lot !(I have also tried min-width without more success)


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>