I simply want to add two pictures in a row.
I use display: inline-block;
which means my images should go in a row because when I say inline-block;
they aren't block elements therefore a newline won't be added after the image is rendered. Makes sense, right?!
However it doesn't work.
body {
padding: 0;
margin: 0;
}
img {
display: inline-block;
width: 30vw;
margin-left: 10vw;
margin-right: 10vw;
}
<body>
<div>
<img src="http://www.gaiawellnessretreat.com/sites/default/files/field/image/portfolio_8.jpg">
<img src="http://www.gaiawellnessretreat.com/sites/default/files/field/image/portfolio_8.jpg">
</div>
</body>
EDIT: This is NOT a duplicate and it is NOT solved.
Adding a hack like font-size: 0
in div does not solve it.