I have a problem with CSS3 flexbox.
If I set the flexbox element to overflow and set the min-width value for the child elements, will the correct padding of the parent element be lost? This is consistent across all supporting browsers.
Here is an example error. If you scroll to the right of the container, you will see that the last child is strongly against the right edge of the container instead of reading the value of the add-on.
.outer { display: flex; flex-direction: row; width: 300px; height: 80px; border:1px #ccc solid; overflow-x: auto; padding: 5px; } .outer > div { flex: 1 1 auto; border: 1px #ccc solid; text-align: center; min-width: 50px; margin: 5px; }
<div class="outer"> <div>text1</div> <div>text2</div> <div>text3</div> <div>text4</div> <div>text5</div> <div>text6</div> <div>text7</div> <div>text8</div> <div>text9</div> <div>text10</div> </div>
Does anyone know why this is so and how I will correct it? I have successfully ruined the padding and margin values ββin different combinations.
html css flexbox css3 winjs
Chris spittles
source share