Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Center align a card

folliejester free asked 3 years ago


Expected behavior : A center aligned card enter image description here

Actual behavior : A top aligned card enter image description here

Resources (screenshots, code snippets etc.)

<div class="card">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <iframe src="https://radio.syden.xyz/public/jpop/embed?theme=dark" frameborder="0" allowtransparency="true" style="width: 100%; min-height: 150px; border: 0;"></iframe>
    <button type="button" class="btn btn-primary">Button</button>
  </div>
</div>

folliejester free answered 3 years ago


fix : <div class="vh-100 d-flex justify-content-center align-items-center">


Grzegorz Bujański staff answered 3 years ago


I can see that you have solved the problem, right?


folliejester free answered 3 years ago


I updated it to a horizontally centered card, and I need help making it vertically centered. https://syden.xyz/radio (don't use your phone to open)



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: Desktop Computer
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No