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

Why are not all flexbox elements behaving like flexbox divs?

$
0
0

Why is flexbox not working properly with fieldset or other non-div tags?I expect them to line up next to each other like in the div example, as flex-direction: row; is default in flexbox. However fieldset is force applying a width to them, and I do not understand why.

HTML

<fieldset><div>fieldset flexbox</div><div>1</div><div>2</div></fieldset><div id="parentdiv"><div>div flexbox<div><div>3</div><div>4</div></div>

CSS: All elements are set to display: flex;

http://jsfiddle.net/c5BB5/1/


Viewing all articles
Browse latest Browse all 1675

Trending Articles



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