I'm having problems while trying to center divs that are located inside a div, and their "children" are in float, but I wanted to center them using the margin: auto; how can I do it?
Follow my little script
<div class="p_sects">
<div class="icon-p_a1"></div>
<div class="icon-p_a2"></div>
<div class="icon-p_a3"></div>
</div>
.p_sects {
border-top: 1px solid #ccc;
width: 597px;
margin-top: 14px !important;
margin: auto;
padding: 11px;
padding-bottom: 0px;
}
.icon-p_a1:before {
content:'\E84E';
float: left;
font-size: 22px;
color: rgba(128, 128, 128, 0.61);
}
.icon-p_a2:before {
content:'\E801';
font-size: 22px;
float: left;
margin-top: -1px;
margin-left: 20px;
color: rgba(128, 128, 128, 0.61);
}
.icon-p_a3:before {
content:'\E84B';
font-size: 23px;
float: left;
margin-top: -2px;
margin-left: 20px;
color: rgba(128, 128, 128, 0.61);
}