: http://codepen.io/n3ptun3/pen/PPgWNb
display: inline-block.
HTML CSS: .card-container .footer float: left; width: 100%;. , 100% , - .
.main-container margin: 0 auto; position: fixed;. position: fixed; . left: 0; right: 0; , . width: 100%; max-width: 400px; , .
left: 50%; ( 50% , ), transform: translate(-50%);, 50% . , / .
, "", " ", .
.main-container {
position: fixed;
bottom: 0;
left: 50%;
transform: translate(-50%);
box-shadow: 0 0 15px #B3B3B3;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
text-align: center;
}
.card-container {
color: #3B3D3D;
height: 105px;
}
.card {
width: 100px;
float: left;
}
.footer {
color: #FFFFFF;
background: #0095D3;
height: 45px;
}
: (re: "" ), , .main-container. 50%, 50% , div, . , float: left; .card display: flex; .card-container. "", .
: http://codepen.io/n3ptun3/pen/PPgWNb
.main-container {
position: fixed;
bottom: 0;
left: 50%;
transform: translate(-50%);
box-shadow: 0 0 15px #B3B3B3;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
text-align: center;
}
.card-container {
color: #3B3D3D;
height: 105px;
display: flex;
}
.card {
width: 100px;
// float: left;
}
.footer {
color: #FFFFFF;
background: #0095D3;
height: 45px;
}