I'm currently working on a website for a friend and I'm using Bootstrap 4 alpha.
Using the Cards i have three cards shown on the page and I would like that when the screen becomes mobile size to change to one card per line:
I don't want to use column but i want to use Bootstrap Cards
Example:
Normal Screen
+++ CARD 1 +++ +++ CARD 2 +++ +++ CARD 3 +++
Mobile screen
+++ CARD 1 +++ +++ CARD 2 +++ +++ CARD 3 +++
the website is: http://www.smitefr.mmo-stream.net/index.php
Example of code:
<div class="row">
<div class="card">
<img src="images/dieux/Agni.jpg" alt="Card image cap">
<h1> Agni</h1>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div><div class="card">
<img src="images/dieux/AhMuzenCab.jpg" alt="Card image cap">
<h1> Ah Muzen Cab</h1>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div><div class="card">
<img src="images/dieux/AhPuch.jpg" alt="Card image cap">
<h1> Ah Puch</h1>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
Example of css:
.card {
float: left;
width: 33.333%;
padding: .75rem;
margin-bottom: 2rem;
border: 0;
}
.card > img {
margin-bottom: .75rem;
display: block;
width: 80%;
height: auto;
margin-left: auto;
margin-right: auto;
}
.card-text {
font-size: 85%;
}