I'm creating a footer that displays inline elements with 2 icons to the left and 4 elements pushed right (buttons + text). This is the closest I've gotten, except the right side is flipped around.
.container {
width: 100%;
}
.f_col_1 {
width: 5%;
float: left;
background: #ccc;
border: 1px solid black;
}
.f_col_1 {
width: 5%;
float: left;
background: #ccc;
border: 1px solid black;
}
.f_col_5 {
width: 30%;
display: block;
background: #ddd;
text-align: center;
}
.f_col_2 {
width: 10%;
float: right;
background: #bbb;
border: 1px solid black;
}
.f_col_3 {
width: 20%;
float: right;
background: #bbb;
border: 1px solid black;
}
.f_col_2 {
width: 10%;
float: right;
background: #bbb;
border: 1px solid black;
}
.f_col_3 {
width: 20%;
float: right;
background: #bbb;
border: 1px solid black;
}
@media only screen and (max-width: 900px) {
div[class^="f_col_"]{
width: 100%;
}
}
<div class="container">
<div class="f_col_1">(1)icon</div>
<div class="f_col_1">(2) icon</div>
<div class="f_col_5"></div>
<div class="f_col_2" >(3)button</div>
<div class="f_col_3" >(4)555.555.5555 </div>
<div class="f_col_2" >(5)button</div>
<div class="f_col_3" >(6)email@internet.com</div>
</div>
It should be... 1-6
I've tried removing floats and putting space-between on center div, but doesn't work. What am I getting wrong? Thanks