When the col-sm is activated, it should stack like this:
[ img ]
[ content ]
[ img ]
[ content ]
But instead, it stacks like this:
[ img ] [ content ]
[ img ] [ content ]
I have removed classes to see if it affects anything, but nothing changes. What am I doing wrong? Here is my HTML code:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="homeContent">
<div class="row homeContent-block">
<div class="homeContent-block-image col-md-5 pull-left col-sm-12 hidden-xs">
<img src="../../Content/images/w_city.jpg" alt="city pic" />
</div>
<div class="homeContent-block-image col-md-7 col-sm-12">
<div class="homeContent-block-content-sub">
<h1>This is a title.</h1>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
</div>
</div>
<div class="row homeContent-block">
<div class="homeContent-block-image col-md-5 col-md-push-7 col-sm-12 hidden-xs">
<img src="../../Content/images/w_city.jpg" alt="city pic" />
</div>
<div class="homeContent-block-image col-md-7 col-md-pull-5 col-sm-12">
<div class="homeContent-block-content-sub">
<h1>This is a title.</h1>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
</div>
</div>
</div>
UPDATE
I mistakenly typed col-s-12
instead of col-sm-12
. Even after correcting it, the issue persists.