Topic: Card Reveal Styling Issue
james.scaggs
pro
asked 7 years ago
My card reveals have extra padding at the bottom as shown here: http://screencast.com/t/gTHPbIfnRyj
I've made sure to size the image correctly and I also disabled all other custom CSS.
The site is http://shoehospitals.com
Add comment
Michal Szymanski
staff
answered 7 years ago
You have a little bit mess in your code. And the card markup isn't correct.
Take a look at unnecessary paragraphs tags
<p>
in your code.
<div class="col-md-6">
<!--Mens Dress Shoes Card Reveal -->
</p>
<div class="card">
<div class="card-image">
<div class="view overlay hm-white-slight z-depth-1">
<img src="http://shoehospitals.com/wp-content/uploads/2016/04/mens-dress-shoes.jpg"></p>
<div class="mask waves-effect activator"></div>
</p>
</div>
</p>
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4">Dress Shoe Repair<i class="material-icons right">more_vert</i></span></p>
<p>Click to learn more</p>
</p>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">Dress Shoe Repair<i class="material-icons right">close</i></span></p>
<p><a href="#">Link</a>Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula.</p>
</p>
</div>
</p>
</div>
<p>
<!--/.Card Reveal-->
</div>
When I remove it, it works fine.
Be sure that your card markup is the same as the markup from our documentation
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags