Background image

Bootstrap background image

Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5. While we'll continue to support for the transition period, we encourage you to migrate to MDB5. We're offering a huge discount on MDB5 PRO to help with your transition, enabling you to leverage the full potential of the latest version. You can find more information here.
upgrade with discount

A Bootstrap background image is an illustration chosen by a user that is placed behind all the other objects on the website. It may be full or partially visible.


Full Page Background Image

See live preview
        
            

        <body>

            <div class="bg"></div>

            <p class="py-5 text-center">This example creates a full page background image. Try to resize the browser window to see how it always will cover the full screen (when scrolled to top), and that it scales nicely on all screen sizes.</p>

        </body>

      
        
    
        
            
        body, html {
          height: 100%;
        }
        .bg {
          /* The image used */
          background-image: url("https://mdbootstrap.com/img/Photos/Horizontal/Nature/full page/img(20).webp");

          /* Full height */
          height: 100%;

          /* Center and scale the image nicely */
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
        }

      
        
    

Half Page Background Image

You can also stretch the background image half page.

See live preview
        
            

        <body>

            <div class="bg"></div>

            <p class="py-5 text-center">This example creates a half page background image. Try to resize the browser window to see how it always will cover the full screen (when scrolled to top), and that it scales nicely on all screen sizes.</p>

        </body>

      
        
    
        
            

        body, html {
          height: 100%;
        }
        .bg {
          /* The image used */
          background-image: url("https://mdbootstrap.com/img/Photos/Horizontal/Nature/full page/img(11).webp");

          /* Half height */
          height: 50%;

          /* Center and scale the image nicely */
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
        }

      
        
    

Background image layout - first option

See live preview
        
            

        <html lang="en">
            <body>

                <!-- Main navigation -->
                <header>
                  <!--Navbar-->
                  <nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
                    <div class="container">
                      <a class="navbar-brand" href="#">
                        <strong>MDB</strong>
                      </a>
                      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent-7" aria-controls="navbarSupportedContent-7" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                      </button>
                      <div class="collapse navbar-collapse" id="navbarSupportedContent-7">
                        <ul class="navbar-nav mr-auto">
                          <li class="nav-item active">
                            <a class="nav-link" href="#">Home
                              <span class="sr-only">(current)</span>
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Link</a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Profile</a>
                          </li>
                        </ul>
                        <form class="form-inline">
                          <div class="md-form my-0">
                            <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
                          </div>
                        </form>
                      </div>
                    </div>
                  </nav>
                  <!-- Full Page Intro -->
                  <div class="view" style="background-image: url('https://mdbootstrap.com/img/Photos/Others/architecture.webp'); background-repeat: no-repeat; background-size: cover; background-position: center center;">
                    <!-- Mask & flexbox options-->
                    <div class="mask rgba-gradient align-items-center">
                      <!-- Content -->
                      <div class="container">
                        <!--Grid row-->
                        <div class="row">
                          <!--Grid column-->
                          <div class="col-md-6 white-text text-center text-md-left mt-xl-5 mb-5 wow fadeInLeft" data-wow-delay="0.3s">
                            <h1 class="h1-responsive font-weight-bold mt-sm-5">Make purchases with our app </h1>
                            <hr class="hr-light">
                            <h6 class="mb-4">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem repellendus quasi fuga nesciunt
                            dolorum nulla magnam veniam sapiente, fugiat! Commodi sequi non animi ea dolor molestiae
                            iste.</h6>
                            <a class="btn btn-white">Download</a>
                            <a class="btn btn-outline-white">Learn more</a>
                          </div>
                          <!--Grid column-->
                          <!--Grid column-->
                          <div class="col-md-6 col-xl-5 mt-xl-5 wow fadeInRight" data-wow-delay="0.3s">
                            <img src="https://mdbootstrap.com/img/Mockups/Transparent/Small/admin-new.webp" alt="" class="img-fluid">
                          </div>
                          <!--Grid column-->
                        </div>
                        <!--Grid row-->
                      </div>
                      <!-- Content -->
                    </div>
                    <!-- Mask & flexbox options-->
                  </div>
                  <!-- Full Page Intro -->
                </header>
                <!-- Main navigation -->
                <!--Main Layout-->
                <main>
                  <div class="container">
                    <!--Grid row-->
                    <div class="row py-5">
                      <!--Grid column-->
                      <div class="col-md-12 text-center">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                      </div>
                      <!--Grid column-->
                    </div>
                    <!--Grid row-->
                  </div>
                </main>
                <!--Main Layout-->

            </body>
        </html>

      
        
    
        
            

        html,
        body,
        header,
        .view {
          height: 100%;
        }

        @media (max-width: 740px) {
          html,
          body,
          header,
          .view {
            height: 1000px;
          }
        }
        @media (min-width: 800px) and (max-width: 850px) {
          html,
          body,
          header,
          .view {
            height: 600px;
          }
        }

        .btn .fa {
          margin-left: 3px;
        }

        .top-nav-collapse {
          background-color: #424f95 !important;
        }

        .navbar:not(.top-nav-collapse) {
          background: transparent !important;
        }

        @media (max-width: 991px) {
          .navbar:not(.top-nav-collapse) {
            background: #424f95 !important;
          }
        }

        .btn-white {
          color: black !important;
        }

        h6 {
          line-height: 1.7;
        }

        .rgba-gradient {
          background: -moz-linear-gradient(45deg, rgba(42, 27, 161, 0.7), rgba(29, 210, 177, 0.7) 100%);
          background: -webkit-linear-gradient(45deg, rgba(42, 27, 161, 0.7), rgba(29, 210, 177, 0.7) 100%);
          background: -webkit-gradient(linear, 45deg, from(rgba(42, 27, 161, 0.7)), to(rgba(29, 210, 177, 0.7)));
          background: -o-linear-gradient(45deg, rgba(42, 27, 161, 0.7), rgba(29, 210, 177, 0.7) 100%);
          background: linear-gradient(to 45deg, rgba(42, 27, 161, 0.7), rgba(29, 210, 177, 0.7) 100%);
        }

      
        
    
        
            

        // Animations init
        new WOW().init();

      
        
    

Background image layout - second option

See live preview
        
            

        <html lang="en">
            <body>

                <header>
                  <!-- Navbar -->
                  <nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
                    <div class="container">
                      <a class="navbar-brand" href="#">
                        <strong>MDB</strong>
                      </a>
                      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent-7" aria-controls="navbarSupportedContent-7" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                      </button>
                      <div class="collapse navbar-collapse" id="navbarSupportedContent-7">
                        <ul class="navbar-nav mr-auto">
                          <li class="nav-item active">
                            <a class="nav-link" href="#">Home
                              <span class="sr-only">(current)</span>
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Link</a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Profile</a>
                          </li>
                        </ul>
                        <form class="form-inline">
                          <div class="md-form my-0">
                            <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
                          </div>
                        </form>
                      </div>
                    </div>
                  </nav>
                  <!-- Navbar -->
                  <!-- Full Page Intro -->
                  <div class="view" style="background-image: url('https://mdbootstrap.com/img/Photos/Others/images/91.webp'); background-repeat: no-repeat; background-size: cover; background-position: center center;">
                    <!-- Mask & flexbox options-->
                    <div class="mask rgba-gradient align-items-center">
                      <!-- Content -->
                      <div class="container">
                        <!--Grid row-->
                        <div class="row mt-5">
                          <!--Grid column-->
                          <div class="col-md-6 mb-5 mt-md-0 mt-5 white-text text-center text-md-left">
                            <h1 class="h1-responsive font-weight-bold wow fadeInLeft" data-wow-delay="0.3s">Sign up right now! </h1>
                            <hr class="hr-light wow fadeInLeft" data-wow-delay="0.3s">
                            <h6 class="mb-3 wow fadeInLeft" data-wow-delay="0.3s">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem repellendus quasi fuga
                            nesciunt dolorum nulla magnam veniam sapiente, fugiat! Commodi sequi non animi ea
                            dolor molestiae, quisquam iste, maiores. Nulla.</h6>
                            <a class="btn btn-outline-white wow fadeInLeft" data-wow-delay="0.3s">Learn more</a>
                          </div>
                          <!--Grid column-->
                          <!--Grid column-->
                          <div class="col-md-6 col-xl-5 mb-4">
                            <!--Form-->
                            <div class="card wow fadeInRight" data-wow-delay="0.3s">
                              <div class="card-body">
                                <!--Header-->
                                <div class="text-center">
                                  <h3 class="white-text">
                                    <i class="fas fa-user white-text"></i> Register:</h3>
                                  <hr class="hr-light">
                                </div>
                                <!--Body-->
                                <div class="md-form">
                                  <i class="fas fa-user prefix white-text active"></i>
                                  <input type="text" id="form3" class="white-text form-control">
                                  <label for="form3" class="active">Your name</label>
                                </div>
                                <div class="md-form">
                                  <i class="fas fa-envelope prefix white-text active"></i>
                                  <input type="email" id="form2" class="white-text form-control">
                                  <label for="form2" class="active">Your email</label>
                                </div>
                                <div class="md-form">
                                  <i class="fas fa-lock prefix white-text active"></i>
                                  <input type="password" id="form4" class="white-text form-control">
                                  <label for="form4">Your password</label>
                                </div>
                                <div class="text-center mt-4">
                                  <button class="btn btn-indigo">Sign up</button>
                                  <hr class="hr-light mb-3 mt-4">
                                  <div class="inline-ul text-center">
                                    <a class="p-2 m-2 tw-ic">
                                      <i class="fab fa-twitter white-text"></i>
                                    </a>
                                    <a class="p-2 m-2 li-ic">
                                      <i class="fab fa-linkedin-in white-text"> </i>
                                    </a>
                                    <a class="p-2 m-2 ins-ic">
                                      <i class="fas fa-instagram white-text"> </i>
                                    </a>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <!--/.Form-->
                          </div>
                          <!--Grid column-->
                        </div>
                        <!--Grid row-->
                      </div>
                      <!-- Content -->
                    </div>
                    <!-- Mask & flexbox options-->
                  </div>
                  <!-- Full Page Intro -->
                </header>
                <!-- Main navigation -->
                <!--Main Layout-->
                <main>
                  <div class="container">
                    <!--Grid row-->
                    <div class="row py-5">
                      <!--Grid column-->
                      <div class="col-md-12 text-center">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                      </div>
                      <!--Grid column-->
                    </div>
                    <!--Grid row-->
                  </div>
                </main>
                <!--Main Layout-->

            </body>
        </html>

      
        
    
        
            

        html,
        body,
        header,
        .view {
          height: 100%;
        }

        @media (max-width: 740px) {
          html,
          body,
          header,
          .view {
            height: 1000px;
          }
        }
        @media (min-width: 800px) and (max-width: 850px) {
          html,
          body,
          header,
          .view {
            height: 650px;
          }
        }

        .top-nav-collapse {
          background-color: #3f51b5 !important;
        }

        .navbar:not(.top-nav-collapse) {
          background: transparent !important;
        }

        @media (max-width: 991px) {
          .navbar:not(.top-nav-collapse) {
            background: #3f51b5 !important;
          }
        }

        .rgba-gradient {
          background: -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(72, 15, 144, 0.4) 100%);
          background: -webkit-gradient(linear, 45deg, from(rgba(0, 0, 0, 0.7), rgba(72, 15, 144, 0.4) 100%)));
          background: linear-gradient(to 45deg, rgba(0, 0, 0, 0.7), rgba(72, 15, 144, 0.4) 100%);
        }

        .card {
          background-color: rgba(126, 123, 215, 0.2);
        }

        .md-form label {
          color: #ffffff;
        }

        h6 {
          line-height: 1.7;
        }

      
        
    
        
            

        // Animations init
        new WOW().init();

      
        
    

Background image layout - third option

See live preview
        
            

        <html lang="en">
            <body>

                <header>
                  <!--Navbar-->
                  <nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
                    <div class="container">
                      <a class="navbar-brand" href="#"><strong>MDB</strong></a>
                      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent-7" aria-controls="navbarSupportedContent-7" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                      </button>
                      <div class="collapse navbar-collapse" id="navbarSupportedContent-7">
                        <ul class="navbar-nav mr-auto">
                          <li class="nav-item active">
                            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Link</a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="#">Profile</a>
                          </li>
                        </ul>
                        <form class="form-inline">
                          <div class="md-form my-0">
                            <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
                          </div>
                        </form>
                      </div>
                    </div>
                  </nav>
                  <!-- Navbar -->
                  <!-- Full Page Intro -->
                  <div class="view" style="background-image: url('https://mdbootstrap.com/img/Photos/Others/img%20%2848%29.webp'); background-repeat: no-repeat; background-size: cover; background-position: center center;">
                    <!-- Mask & flexbox options-->
                    <div class="mask rgba-black-light align-items-center">
                      <!-- Content -->
                      <div class="container">
                        <!--Grid row-->
                        <div class="row">
                          <!--Grid column-->
                          <div class="col-md-12 mb-4 white-text text-center">
                            <h1 class="h1-reponsive white-text text-uppercase font-weight-bold mb-0 pt-md-5 pt-5 wow fadeInDown" data-wow-delay="0.3s"><strong>Minimalist intro</strong></h1>
                            <hr class="hr-light my-4 wow fadeInDown" data-wow-delay="0.4s">
                            <h5 class="text-uppercase mb-4 white-text wow fadeInDown" data-wow-delay="0.4s"><strong>Photography & design</strong></h5>
                            <a class="btn btn-outline-white wow fadeInDown" data-wow-delay="0.4s">portfolio</a>
                            <a class="btn btn-outline-white wow fadeInDown" data-wow-delay="0.4s">About me</a>
                          </div>
                          <!--Grid column-->
                        </div>
                        <!--Grid row-->
                      </div>
                      <!-- Content -->
                    </div>
                    <!-- Mask & flexbox options-->
                  </div>
                  <!-- Full Page Intro -->
                </header>
                <!-- Main navigation -->
                <!--Main Layout-->
                <main>
                  <div class="container">
                    <!--Grid row-->
                    <div class="row py-5">
                      <!--Grid column-->
                      <div class="col-md-12 text-center">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                        <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                        <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
                      </div>
                      <!--Grid column-->
                    </div>
                    <!--Grid row-->
                  </div>
                </main>
                <!--Main Layout-->

            </body>
        </html>

      
        
    
        
            

        html,
        body,
        header,
        .view {
          height: 100%;
        }

        @media (max-width: 740px) {
          html,
          body,
          header,
          .view {
            height: 100vh;
          }
        }

        .top-nav-collapse {
          background-color: #78909c !important;
        }

        .navbar:not(.top-nav-collapse) {
          background: transparent !important;
        }

        @media (max-width: 991px) {
          .navbar:not(.top-nav-collapse) {
            background: #78909c !important;
          }
        }

        h1 {
          letter-spacing: 8px;
        }

        h5 {
          letter-spacing: 3px;
        }

        .hr-light {
          border-top: 3px solid #fff;
          width: 80px;
        }

      
        
    
        
            

        // Animations init
        new WOW().init();

      
        
    

Background video layout

See live preview
        
            

        <html lang="en" class="full-height">
            <body>

              <!-- Main navigation -->
              <header>
                <!-- Navbar -->
                <nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
                  <div class="container">
                    <a class="navbar-brand" href="#">Navbar</a>
                    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
                      <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
                      <ul class="navbar-nav mr-auto smooth-scroll">
                        <li class="nav-item">
                          <a class="nav-link" href="#home">Home
                            <span class="sr-only">(current)</span>
                          </a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#about" data-offset="90">About</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#features" data-offset="90">Features</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#services" data-offset="90">Services</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#opinions" data-offset="30">Opinions</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#team" data-offset="90">Team</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#contact" data-offset="90">Contact</a>
                        </li>
                      </ul>
                      <!-- Social Icon  -->
                      <ul class="navbar-nav nav-flex-icons">
                        <li class="nav-item">
                          <a class="nav-link">
                            <i class="fab fa-facebook-f light-green-text-2"></i>
                          </a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link">
                            <i class="fab fa-twitter light-green-text-2"></i>
                          </a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link">
                            <i class="fas fa-instagram light-green-text-2"></i>
                          </a>
                        </li>
                      </ul>
                    </div>
                  </div>
                </nav>
                <!-- Navbar -->
                <!-- Full Page Intro -->
                <div class="view">
                  <video class="video-intro" poster="https://mdbootstrap.com/img/Photos/Others/background.webp" playsinline autoplay muted loop>
                    <source src="https://mdbootstrap.com/img/video/animation.mp4" type="video/mp4">
                  </video>
                  <!-- Mask & flexbox options-->
                  <div class="mask rgba-gradient align-items-center">
                    <!-- Content -->
                    <div class="container px-md-3 px-sm-0">
                      <!--Grid row-->
                      <div class="row wow fadeIn">
                        <!--Grid column-->
                        <div class="col-md-12 mb-4 white-text text-center wow fadeIn">
                          <h3 class="display-3 font-weight-bold white-text mb-0 pt-md-5 pt-5">Creative Agency</h3>
                          <hr class="hr-light my-4 w-75">
                          <h4 class="subtext-header mt-2 mb-4">Lorem ipsum dolor sit amet, consectetur adipisicing elit deleniti consequuntur nihil.</h4>
                          <a href="#!" class="btn btn-rounded btn-outline-white">
                            <i class="fas fa-home"></i> Visit us
                          </a>
                        </div>
                        <!--Grid column-->
                      </div>
                      <!--Grid row-->
                    </div>
                    <!-- Content -->
                  </div>
                  <!-- Mask & flexbox options-->
                </div>
                <!-- Full Page Intro -->
              </header>
              <!-- Main navigation -->
              <!--Main Layout-->
              <main>
                <div class="container">
                  <!--Grid row-->
                  <div class="row py-5">
                    <!--Grid column-->
                    <div class="col-md-12 text-center">
                      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                    </div>
                    <!--Grid column-->
                  </div>
                  <!--Grid row-->
                </div>
              </main>
              <!--Main Layout-->

            </body>
        </html>

      
        
    
        
            

        html,
        body,
        header,
        .view {
          height: 100%;
        }

        @media (max-width: 740px) {
          html,
          body,
          header,
          .view {
            height: 100vh;
          }
        }

        .top-nav-collapse {
          background-color: #563e91 !important;
        }

        .navbar:not(.top-nav-collapse) {
          background: transparent !important;
        }

        @media (max-width: 991px) {
          .navbar:not(.top-nav-collapse) {
            background: #563e91 !important;
          }
        }

        .rgba-gradient {
          background: -moz-linear-gradient(45deg, rgba(213, 15, 61, 0.6), rgba(13, 17, 198, 0.69) 100%);
          background: -webkit-linear-gradient(45deg, rgba(213, 15, 61, 0.6), rgba(13, 17, 198, 0.69) 100%);
          background: linear-gradient(to 45deg, rgba(213, 15, 61, 0.6), rgba(13, 17, 198, 0.69) 100%);
        }

      
        
    
        
            

        // Animations init
        new WOW().init();

      
        
    

Cards with background image MDB Pro component

You can also use background image with cards.

Marketing

This is the card title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos. Odit sed qui, dolorum!.

View project
Software

This is the card title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos. Odit sed qui, dolorum!.

View project
        
            

        <!-- Card -->
        <div class="card card-image" style="background-image: url(https://mdbootstrap.com/img/Photos/Horizontal/Work/4-col/img%20%2814%29.webp);">

            <!-- Content -->
            <div class="text-white text-center d-flex align-items-center rgba-black-strong py-5 px-4">
                <div>
                    <h5 class="pink-text"><i class="fas fa-chart-pie"></i> Marketing</h5>
                    <h3 class="card-title pt-2"><strong>This is the card title</strong></h3>
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem,
                        optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos.
                        Odit sed qui, dolorum!.</p>
                    <a class="btn btn-pink"><i class="far fa-clone left"></i> View project</a>
                </div>
            </div>
            <!-- Content -->
        </div>
        <!-- Card -->

      
        
    

Project section with background image cards MDB Pro component

You can use background images in more advanced designs using grid system and cards.

Our best projects

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit est laborum.

Travel

This is the card title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos. Odit sed qui, dolorum!

View project
Marketing

This is the card title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos. Odit sed qui, dolorum!

View project
Entertainment

This is the card title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos. Odit sed qui, dolorum!

View project
        
            

        <!--Projects section v.4-->
        <section>

            <!--Section heading-->
            <h2 class="h1-responsive font-weight-bold text-center my-5">Our best projects</h2>
            <!-- Section description -->
            <p class="grey-text text-center w-responsive mx-auto mb-5">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit est laborum.</p>

            <!--Grid row-->
            <div class="row mx-1">

                <!--Grid column-->
                <div class="col-md-12 mb-4">
                    <div class="card card-image" style="background-image: url(https://mdbootstrap.com/img/Photos/Others/img%20%2832%29.webp);">
                        <div class="text-white text-center d-flex align-items-center rgba-black-strong py-5 px-4">
                            <div>
                                <h6 class="purple-text"><i class="fas fa-plane"></i><strong> Travel</strong></h6>
                                <h3 class="card-title py-3 font-weight-bold"><strong>This is the card title</strong></h3>
                                <p class="pb-3">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem,
                                    optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos.
                                    Odit sed qui, dolorum!</p>
                                <a class="btn btn-secondary btn-rounded"><i class="far fa-clone left"></i> View project</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Grid column-->

                <!--Grid column-->
                <div class="col-md-6 mb-4">
                    <div class="card card-image" style="background-image: url(https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img%20%2873%29.webp);">
                        <div class="text-white text-center d-flex align-items-center rgba-black-strong py-5 px-4">
                            <div>
                                <h6 class="pink-text"><i class="fas fa-chart-pie"></i><strong> Marketing</strong></h6>
                                <h3 class="card-title py-3 font-weight-bold"><strong>This is the card title</strong></h3>
                                <p class="pb-3">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem,
                                    optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos.
                                    Odit sed qui, dolorum!</p>
                                <a class="btn btn-pink btn-rounded"><i class="far fa-clone left"></i> View project</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Grid column-->

                <!--Grid column-->
                <div class="col-md-6 mb-4">
                    <div class="card card-image" style="background-image: url(https://mdbootstrap.com/img/Photos/Horizontal/City/6-col/img%20%2847%29.webp);">
                        <div class="text-white text-center d-flex align-items-center rgba-black-strong py-5 px-4">
                            <div>
                                <h6 class="green-text"><i class="far fa-eye"></i><strong> Entertainment</strong></h6>
                                <h3 class="card-title py-3 font-weight-bold"><strong>This is the card title</strong></h3>
                                <p class="pb-3">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem,
                                    optio vero odio nam sit officia accusamus minus error nisi architecto nulla ipsum dignissimos.
                                    Odit sed qui, dolorum!</p>
                                <a class="btn btn-success btn-rounded"><i class="far fa-clone left"></i> View project</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--Grid column-->

            </div>
            <!--Grid row-->

        </section>
        <!--Projects section v.4-->