I want to center a div of inline-block images. This is the relevant HTML:
<div class = "row">
<div class = "icon"> <img src = "icon.PNG" alt="Some of the interesting stuff I've worked on."> </div>
<div class = "icon"> <img src = "icon.PNG" alt="My past experiences."> </div>
</div>
and the CSS:
.row{
display: block;
}
.icon{
margin: 0 auto;
}
the result is supposed to be the icons side-by-side and centered horizontally. Right now they are centered horizontally but they are all underneath eachother.
Help is greatly appreciated, I'm new to web development.
Thanks.