Why does flex ignore the width set on some items, but obey the widths set on others?
I want to use flex for a grid system where sometimes I want items that are 100% in width.
In this linked example I want the items to obey the widths they are give. .full
should be 100% width across the screen while .one-third
and .two-thirds
should obey their respective widths of 33.3% and 66.6%
But instead, everything squeezes onto one line.
.grid.full {
width: 100%;
}
.grid.one-third {
width: 33.33%;
}
.grid.two-thirds {
width: 66.66%;
}