I'm using bootstrap 3 and I try to have a specific grid alignment for article on desktop.
On mobile I want to order content of the article like that :
- Title
- Image
- Content
On desktop, I want the image on the left and the title and content on the right.
Here is my code
<article class="row">
<header class="col-md-8 col-md-push-4">
<a href="#">
<h2>Title</h2>
</a>
</header>
<div class="col-md-4 col-md-pull-8">
<figure>
<a class="thumbnail" href="#">
<img src="..." alt="4x3 Image" class="img-responsive">
<figcaption>Caption</figcaption>
</a>
</figure>
</div>
<div class="col-md-8 col-md-push-4">
<p>Content</p>
</div>
</article>
But with this code, the content is on the right but under the image.
Is there a simple way to get what I want ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…