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

Why doesn't "" cause a line break in a flex container, but "" does? [closed]

$
0
0

Playing with flex containers, I wanted to add some line breaks at specific positions.So I tried this:

.break {  flex-basis: 100%;  height: 0;}

When I inserted <br class="break" />, then the line just continued, but when I inserted <span class="break" />, the a line-break was added.

Why is that?For browser compatibility I felt that using BR was preferable.


Viewing all articles
Browse latest Browse all 1675

Trending Articles



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