2枚の画像を並べて表示しようとしています。私はそれらをフル幅で反応性のあるものにしたい。しかし、私は同じ行にそれらを取得する方法を把握することはできません。誰にも解決策はありますか?ここではフィドルは - https://jsfiddle.net/0je558ex/ので、彼らが取り上げるwidth: 50%; display: inline-block;
に画像をラップし、width: 100%;
にimg
タグを設定するdivを設定し2枚の画像を並べて並べます
<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
}
この[ポスト](http://stackoverflow.com/questions/24680030/align-いimages-side-by-side-in-html)は何をしようとしていますか? –