Вы можете сделать все card-text
элементы имеют одинаковую высоту. Один из способов сделать это можно через javascript. Напишите функцию, как это:
document.addEventListener("DOMContentLoaded", function(event) {
adjustCardTextHeights();
});
function adjustCardTextHeights() {
var heights = $(".card-text").map(function() {
return $(this).height();
}).get();
maxHeight = Math.max.apply(null, heights);
$(".card-text").height(maxHeight);
}
Или с JQuery:
$(document).ready(function() {
adjustCardTextHeights();
});
function adjustCardTextHeights() {
var heights = $(".card-text").map(function() {
return $(this).height();
}).get();
maxHeight = Math.max.apply(null, heights);
$(".card-text").height(maxHeight);
}
Это заставляет вас:
_ «... лучше выглядите» _ очень расплывчато. Чего _exactly_ вы пытаетесь достичь? – Turnip
@SexyTurnip Я хочу, чтобы кнопка была выровнена на мобильном и рабочем столе. –