Topic: Vertically center product image
lukas.olsson@itbmedia.se pro asked 7 years ago
<!--Card image--> <div class="view overlay hm-white-slight whitebgprod"> <img src="litenprodukt.jpg" class="img-fluid mx-auto shoppic" alt=""> <a> <div class="mask"></div> </a> </div><!--Card image-->
Marta Szymanska staff pro premium answered 7 years ago
Hi,
I'm not sure how you imagine this, so could you paste here any demo how it should look? I'll try to help.
Best,
Marta
lukas.olsson@itbmedia.se pro commented 7 years ago
I managed to do it by adding the following css to the "view" div holding the product picture: display: flex; align-items: center; flex-wrap: wrap;lukas.olsson@itbmedia.se pro answered 7 years ago
Marta Szymanska staff pro premium answered 7 years ago
Phillip Jacobs answered 5 years ago
Just ran into the same issue and this worked for me:
class="d-flex align-items-center"
Got it from MDB Utilities FlexBox Docs
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No