xxxxxxxxxx
1
<div class="container my-5">
2
3
<!-- Section: Block Content -->
4
<section>
5
6
<style>
7
.rgba-black-gradient {
8
background: linear-gradient(to top, rgba(0,0,0,.8) 55%,rgba(0,0,0,0) 100%);
9
}
10
</style>
11
12
<!-- Grid row -->
13
<div class="row">
14
15
<!-- Grid column -->
16
<div class="col-12">
17
18
<div class="view zoom z-depth-1 rounded mb-4">
19
<a href="#!">
20
<img src="https://mdbootstrap.com/img/Photos/Others/product1.jpg" class="img-fluid" alt="sample image">
21
<div class="mask rgba-black-gradient d-md-flex align-items-end">
22
<div class="text-bottom white-text p-4">
23
<span class="badge badge-danger">bestseller</span>
24
<h3 class="card-title font-weight-bold mt-2 mb-1">This is news title</h3>
25
<p class="font-weight-normal mb-2">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
26
<button class="btn btn-danger btn-sm btn-rounded mx-0 mb-0 d-none d-sm-inline-block">Read more</button>
27
</div>
28
</div>
29
</a>
30
</div>
31
32
</div>
33
<!-- Grid column -->
34
35
</div>
36
<!-- Grid row -->
37
38
</section>
39
<!-- Section: Block Content -->
40
41
</div>
1
1
1
1
Console errors: 0