Bootstrap: How to align card elements

Created on 18 Apr 2018  路  7Comments  路  Source: twbs/bootstrap

Hi,

I have the next problem:

  • I use three card into a card-deck, i need to align the three cards in the center of the screen
    I have tried with text-center but it does not work, can you support me?

Thank you.

Most helpful comment

<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header">{{ __('menu.headings.add_menu') }}</div>
          <div class="card-body">

          </div>
        </div>
      </div>
    </div>
</div>

Works fine for me :)
or do you want 3 cards inside a card, then make
picture
````

{{ __('menu.headings.add_menu') }}

All 7 comments

Try 'justify-content-center'. Also, this isn't an issue.

<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header">{{ __('menu.headings.add_menu') }}</div>
          <div class="card-body">

          </div>
        </div>
      </div>
    </div>
</div>

Works fine for me :)
or do you want 3 cards inside a card, then make
picture
````

{{ __('menu.headings.add_menu') }}

Issues are for bug reports and feature requests, not general how-to questions. For that, we suggest the official Slack channel or Stack Overflow. Both are linked from our readme.

Thanks!

Stack overflow not works for me.

@ShiruJan how can Stack Overflow not work for you :grin:

Did my example above not work?
@mdo I understand that you closed it but I will still help him I hope thats OK

Hello AltayAkkus!

Thank you very much for your help, it helped me a lot.

@ShiruJan You are welcome! Feel free to ask me any further questions

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knownasilya picture knownasilya  路  3Comments

bellwood picture bellwood  路  3Comments

ziyi2 picture ziyi2  路  3Comments

matsava picture matsava  路  3Comments

athimannil picture athimannil  路  3Comments