I have some code I'm working on which contains a fieldset container which cannot be changed. For some reason, I cannot get the fieldset child elements to display as a row inside a flexbox, despite the row being applied.
How can the fieldset flex direction row be achieved? I've built a brief demo that showcases it working on a div but not a fieldset, despite having the same css.
Thanks for any help here.
span {
background: lightgreen;
}
span:nth-of-type(odd) {
background: pink;
}
div, fieldset {
display: flex;
flex-flow: row wrap;
}
<fieldset>
<span>text 1</span>
<span>text 2</span>
<span>text 3</span>
</fieldset>
<div>
<span>text 1</span>
<span>text 2</span>
<span>text 3</span>
</div>