フローティングエレメントが正しく配置されていないのはなぜですか?私のイメージには空白があり、どこから来たのか分かりません。HTML/CSSでこのレイアウトを達成する方法は?
目的の外観:
コード:
.inner-wrapper { float: left; width: 100%; color: #000; }
.feature-1 { float: right; margin: 0 auto; width: 50%; height: auto; }
.aside-image-1 { float: left; margin: 0 auto; height: auto; width: 50%; }
.feature-2 { float: left; margin: 0 auto; width: 50%; height: auto; }
.aside-image-2 { float: right; margin: 0 auto; height: auto; width: 50%; }
.feature-3 { float: right; margin: 0 auto; width: 50%; height: auto; }
.aside-image-3 { float: left; margin: 0 auto; height: auto; width: 50%; clear: both; }
<section class="inner-wrapper">
<aside class="aside-image-1">
<img src="https://s13.postimg.org/xsvgi16hv/feature_1.jpg" title="someText" alt="someText">
</aside>
<article class="feature-1">
<h3>In-Store Interactive Tablet</h3>
<p>Shoppers can use Sellr's Help Me Choose feature to</p>
</article>
</section>
<section class="inner-wrapper">
<aside class="aside-image-2">
<img src="https://s13.postimg.org/t89a33msj/feature_2.jpg" title="someText" alt="someText">
</aside>
<article class="feature-2">
<h3>In-Store Interactive Tablet</h3>
<p>Shoppers can use Sellr's Help Me Choose feature to</p>
</article>
</section>
<section class="inner-wrapper">
<aside class="aside-image-3">
<img src="https://s13.postimg.org/9ex6ae9er/feature_3.jpg" title="someText" alt="someText">
</aside>
<article class="feature-3">
<h3>In-Store Interactive Tablet</h3>
<p>Shoppers can use Sellr's Help Me Choose feature to</p>
</article>
</section>
時々インラインIMGのは、それらの下にある小さな空白を持つことになります。それらを 'display:block'にすることでこれを削除してください – mch