.flextable { flex-flow: wrap; display: flex; } .flextable li { margin: -0.04em; display: flex; width: 118px; text-align: center; font-weight:bold; justify-content: center; align-items: center; padding: 0.2em 0.4em; border: 1px solid #a2a9b1; background-color: #f8f9fa; }