Próbuję dodać spację między dwoma talią kart. Używam bootstrapu 4 alpha 6. Nie mam pojęcia, dlaczego użycie drugiej karty na karcie przy korzystaniu z mt-20
tego nie zrobi. Próbowałem owijanie ich w rzędach i robi to, ale nie robi to albo:Bootstrap 4, dodaj przestrzeń między dwoma taliami kart
<div>
<div class="container">
<div class="card-deck">
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">Permits</h4>
<p class="card-text">
Apply for parking permit<br />
View existing permit requests<br />
Activate Visitor permits<br />
</p>
</div>
<div class="card-footer">
@Html.ActionLink("Permits", "Index", "Home", new { Area = "Permit" }, new { @class = "btn btn-primary" })
</div>
</div>
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">Vehicles</h4>
<p class="card-text">
View and manage your vehicles
</p>
</div>
<div class="card-footer">
@Html.ActionLink("My Vehicles", "Index", "Vehicle", null, new { @class = "btn btn-primary" })
</div>
</div>
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">Parking Tickets</h4>
<p class="card-text">
View your parking ticket history
</p>
</div>
<div class="card-footer">
@Html.ActionLink("My Tickets", "Index", "ParkingTicket", null, new { @class = "btn btn-primary" })
</div>
</div>
</div>
<div class="card-deck mt-20">
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">Funding Options</h4>
<p class="card-text">
Add credit/debit card<br />
Top up Account<br />
Manage cards
</p>
</div>
<div class="card-footer">
@Html.ActionLink("Funding Options", "Index", "Funding", null, new { @class = "btn btn-primary" })
</div>
</div>
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">Account History</h4>
<p class="card-text">
View all financial transactions on my account
</p>
</div>
<div class="card-footer">
@Html.ActionLink("Account transactions", "Index", "Activity", null, new { @class = "btn btn-primary" })
</div>
</div>
<div class="card text-center">
<div class="card-block">
<h4 class="card-title">User Settings</h4>
<p class="card-text">
Edit personal details<br />
Change top-up settings<br />
Change password
</p>
</div>
<div class="card-footer">
@Html.ActionLink("Personal details", "Update", "Account", null, new { @class = "btn btn-primary" })
</div>
</div>
</div>
</div>
To prawda, ale ja downvoted ponieważ Bootstrap ma już tej klasy. mb- [1-4] lub bardziej ogólnie my- [1-4] dla obu górnych i dolnych. –