10/18 100% Все ли верно?

/* Используемые цвета:

#777777
#ffffff
#fffebc
#b2fdd0
#ffbaba

*/

.formula {
margin: 10px;
width: 500px;
border-collapse: collapse;
display: table;
}

.formula p {
margin: 0;
padding: 10px;
font-size: 20px;
display: table-caption;
caption-side: bottom;
text-align: center;
}

.formula ul {
display: table-row;
}

.formula li {
display: table-cell;
text-align: center;
vertical-align: middle;
padding: 5px;
border: 1px solid #777777;
}

.formula header {
display: table-header-group;
background-color: #ffffff;
}

.formula .content {
display: table-row-group;
}

.formula .column {
display: table-column;
}

.formula .column-group {
display: table-column-group;
background-color: #b2fdd0;
}

.formula .column-last {
background-color: #ffbaba;
}

.formula .content-important {
background-color: #fffebc;
}