I want to add space between spans so that the leftmost and rightmost spans will be close to the edges of the inner div. I've tried to add the following rule, but it had no effect.
span.icon-square {
margin: 0 auto;
}
span.icon-square:first-child {
margin-left: 0;
}
span.icon-square:last-child {
margin-right: 0;
}
The illustration of what I'm trying to achieve is given below:
So, what am I missing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…