"Bootstrap Gradients - Material Design & Bootstrap 4"
Bootstrap 4.0.0 Snippet by MDBootstrap

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <body> <main> <!--MDB --> <div class="container mt-4"> <div class="text-center darken-grey-text mb-4"> <h1 class="font-bold mt-4 mb-3 h5">Built with Material Design for Bootstrap 4</h1> <a class="btn btn-danger btn-md" href="https://mdbootstrap.com/material-design-for-bootstrap/" target="_blank">Free download<i class="fa fa-download pl-2"></i></a> </div> <h3 class="font-bold font-up cyan-text text-center mb-4"><strong>Gradient on the image</strong></h3> <!-- Grid row --> <div class="row"> <!-- Grid column --> <div class="col-md-6 mb-4"> <div class="img-gradient"> <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (122).jpg" class="img-fluid z-depth-1-half" alt="My photo"> </div> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-6 mb-4"> <div class="img-gradient-1"> <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (123).jpg" class="img-fluid z-depth-1-half" alt="My photo"> </div> </div> <!-- Grid column --> </div> <!-- Grid row --> <section> <h3 class="font-bold font-up cyan-text text-center mb-4"><strong>Gradients examples</strong></h3> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 warm-flame-gradient z-depth-2"></div> <h5>warm-flame-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 night-fade-gradient z-depth-2"></div> <h5>night-fade-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 spring-warmth-gradient z-depth-2"></div> <h5>spring-warmth-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 juicy-peach-gradient z-depth-2 black-text"></div> <h5>juicy-peach-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 young-passion-gradient z-depth-2 black-text"></div> <h5>young-passion-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4"> <div class="color-block mx-auto mb-3 lady-lips-gradient z-depth-2 black-text"></div> <h5>lady-lips-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 sunny-morning-gradient z-depth-2"></div> <h5>sunny-morning-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 rainy-ashville-gradient z-depth-2"></div> <h5>rainy-ashville-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 frozen-dreams-gradient z-depth-2"></div> <h5>frozen-dreams-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 winter-neva-gradient z-depth-2"></div> <h5>winter-neva-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 dusty-grass-gradient z-depth-2"></div> <h5>dusty-grass-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 tempting-azure-gradient z-depth-2"></div> <h5>tempting-azure-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 heavy-rain-gradient z-depth-2"></div> <h5>heavy-rain-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 amy-crisp-gradient z-depth-2"></div> <h5>amy-crisp-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 mean-fruit-gradient z-depth-2"></div> <h5>mean-fruit-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 deep-blue-gradient z-depth-2 black-text"></div> <h5>deep-blue-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 ripe-malinka-gradient z-depth-2 black-text"></div> <h5>ripe-malinka-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4"> <div class="color-block mx-auto mb-3 cloudy-knoxville-gradient z-depth-2 black-text"></div> <h5>cloudy-knoxville-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> <!-- Grid row --> <div class="row text-center"> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 morpheus-den-gradient z-depth-2"></div> <h5>morpheus-den-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 rare-wind-gradient z-depth-2"></div> <h5>rare-wind-gradient</h5> </div> <!-- Grid column --> <!-- Grid column --> <div class="col-md-4 mb-4"> <div class="color-block mx-auto mb-3 near-moon-gradient z-depth-2"></div> <h5>near-moon-gradient</h5> </div> <!-- Grid column --> </div> <!-- Grid row --> </section> <hr class="my-4"> <div class="text-center darken-grey-text mb-4"> <h3 class="font-bold mb-3">Here you can find more Gradients:</h3> <a class="btn btn-danger" href="https://mdbootstrap.com/css/bootstrap-gradient/" target="_blank">Bootstrap Gradients</a> </div> </div> <!--MDB --> </main> </body>
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); @import url(https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.4.3/css/mdb.min.css); .darken-grey-text { color: #2E2E2E; } .img-gradient, .img-gradient-1 { position:relative; display:inline-block; } .img-gradient:after { content:''; position:absolute; left:0; top:0; width:100%; height:100%; display:inline-block; background: -moz-linear-gradient(top, rgba(0,47,75,0.5) 0%, rgba(220, 66, 37, 0.5) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(220, 66, 37, 0.5)), color-stop(100%,rgba(0,47,75,0.5))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,47,75,0.5) 0%,rgba(220, 66, 37, 0.5) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,47,75,0.5) 0%,rgba(220, 66, 37, 0.5) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,47,75,0.5) 0%,rgba(220, 66, 37, 0.5) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,47,75,0.5) 0%,rgba(220, 66, 37, 0.5) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#002f4b', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */ } .img-gradient-1:after { content:''; position:absolute; left:0; top:0; width:100%; height:100%; display:inline-block; background: -moz-linear-gradient(top, rgba(168, 237, 234, 0.5) 0%, rgba(254, 214, 227, 0.5) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(254, 214, 227, 0.5)), color-stop(100%,rgba(254, 214, 227, 0.5))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(168, 237, 234, 0.5) 0%,rgba(254, 214, 227, 0.5) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(168, 237, 234, 0.5) 0%,rgba(254, 214, 227, 0.5) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(168, 237, 234, 0.5) 0%,rgba(254, 214, 227, 0.5) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(168, 237, 234, 0.5) 0%,rgba(254, 214, 227, 0.5) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d4fc79', endColorstr='#96e6a1',GradientType=0 ); /* IE6-9 */ } .img-gradient img, .img-gradient-1 img { display:block; } .color-block { border-radius: 50%; height: 200px; width: 200px; } .juicy-peach-gradient { background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%); } .young-passion-gradient { background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%); } .lady-lips-gradient { background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); } .sunny-morning-gradient { background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%); } .rainy-ashville-gradient { background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); } .frozen-dreams-gradient { background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%); } .warm-flame-gradient { background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); } .night-fade-gradient { background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%); } .spring-warmth-gradient { background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%); } .winter-neva-gradient { background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); } .dusty-grass-gradient { background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%); } .tempting-azure-gradient { background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); } .heavy-rain-gradient { background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); } .amy-crisp-gradient { background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%); } .mean-fruit-gradient { background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); } .deep-blue-gradient { background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); } .ripe-malinka-gradient { background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); } .cloudy-knoxville-gradient { background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); } .morpheus-den-gradient { background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%); } .rare-wind-gradient { background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%); } .near-moon-gradient { background-image: linear-gradient(to top, #5ee7df 0%, #b490ca 100%); }

Related: See More


Questions / Comments: