Currently, I am utilizing a Bootstrap theme and trying to place up to three cards horizontally on a page at one specific location. Here is the HTML code:
<div class="container">
<h1 class="text-center">{{ self.title }}</h1>
<div class="card_deck;" style="display: table;">
{% for card in self.cards %}
<div class="card;" style="display: table-cell; padding:20px;">
A card content will go here
</div>
{% endfor %}
</div>
</div>
I have two inquiries regarding this scenario:
How can I centrally align the cards on the page?
What would be the most suitable approach for managing the CSS? Considering that I do not wish to alter the default styling of Bootstrap's card and card_deck elements, should I keep the styles within the div tag itself?