J'essaie de placer deux images côte à côte. Je veux qu'ils soient pleine largeur et réactifs. Cependant, je ne peux pas comprendre comment les obtenir sur la même ligne. Est-ce que quelqu'un a des solutions? Voici un violon - https://jsfiddle.net/0je558ex/Placer deux images côte à côte
<div class="food-featured-posts">
<div class="food-featured-posts-first">
<img src="https://static.pexels.com/photos/2855/landscape-mountains-nature-lake.jpg"/ >
</div>
<div class="food-featured-posts-second">
<img src="https://static.pexels.com/photos/4164/landscape-mountains-nature-mountain.jpeg"/ >
</div>
</div>
food-featured-posts {
width: 100%;
margin-bottom: 100px;
}
.food-featured-posts-first img {
width: 50%;
height: 50%;
display:inline-block
}
.food-featured-posts-second img {
width: 50%;
height: 50%;
display:inline-block
}
Est-ce que [post] (http://stackoverflow.com/questions/24680030/align- images-side-by-side-in-html) aide avec ce que vous essayez de faire? –