.flexcontainer{ //display:flex; } .flexitem{ width: 100%; height: 100px; text-align: center; } .item1{ background: #faa6a6;; } .item2{ background: #8bbaff; } .item3{ background: #f3ffbe; }