0
I’m having trouble trying to centralize Ivs that are located within a mother div, their "children" are in float, but I wanted to centralize them using margin:auto; how can I do?
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);
}