"Horizontal cards - Bootstrap 4"
Bootstrap 4.0.0 Snippet by johndrova

<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 ----------> <div class="container py-3"> <div class="title h1 text-center">Horizontal cards - Bootstrap 4</div> <!-- Card Start --> <div class="card"> <div class="row "> <div class="col-md-7 px-3"> <div class="card-block px-6"> <h4 class="card-title">Horizontal Card with Carousel - Bootstrap 4 </h4> <p class="card-text"> The Carousel code can be replaced with an img src, no problem. The added CSS brings shadow to the card and some adjustments to the prev/next buttons and the indicators is rounded now. As in Bootstrap 3 </p> <p class="card-text">Made for usage, commonly searched for. Fork, like and use it. Just move the carousel div above the col containing the text for left alignment of images</p> <br> <a href="#" class="mt-auto btn btn-primary ">Read More</a> </div> </div> <!-- Carousel start --> <div class="col-md-5"> <div id="CarouselTest" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#CarouselTest" data-slide-to="0" class="active"></li> <li data-target="#CarouselTest" data-slide-to="1"></li> <li data-target="#CarouselTest" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block" src="https://picsum.photos/450/300?image=1072" alt=""> </div> <div class="carousel-item"> <img class="d-block" src="https://picsum.photos/450/300?image=855" alt=""> </div> <div class="carousel-item"> <img class="d-block" src="https://picsum.photos/450/300?image=355" alt=""> </div> <a class="carousel-control-prev" href="#CarouselTest" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#CarouselTest" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> <!-- End of carousel --> </div> </div> <!-- End of card --> </div> <div class="container"> <div class="card float-left"> <div class="row "> <div class="col-sm-7"> <div class="card-block"> <!-- <h4 class="card-title">Small card</h4> --> <p>Wetgple text to build your own card.</p> <p>Change around the content for awsomenes</p> <a href="#" class="btn btn-primary btn-sm">Read More</a> </div> </div> <div class="col-sm-5"> <img class="d-block w-100" src="https://picsum.photos/150?image=380" alt=""> </div> </div> </div> <div class="card float-right"> <div class="row"> <div class="col-sm-5"> <img class="d-block w-100" src="https://picsum.photos/150?image=641" alt=""> </div> <div class="col-sm-7"> <div class="card-block"> <!-- <h4 class="card-title">Small card</h4> --> <p>Copy paste the HTML and CSS.</p> <p>Change around the content for awsomenes</p> <br> <a href="#" class="btn btn-primary btn-sm float-right">Read More</a> </div> </div> </div> </div> </div> <br> <br> <br> <div class="footer"> </div>
body { background-color: #eee; } .title { margin-bottom: 50px; text-transform: uppercase; } .card-block { font-size: 1em; position: relative; margin: 0; padding: 1em; border: none; border-top: 1px solid rgba(34, 36, 38, .1); box-shadow: none; } .card { font-size: 1em; overflow: hidden; padding: 5; border: none; border-radius: .28571429rem; box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5; margin-top:20px; } .carousel-indicators li { border-radius: 12px; width: 12px; height: 12px; background-color: #404040; } .carousel-indicators li { border-radius: 12px; width: 12px; height: 12px; background-color: #404040; } .carousel-indicators .active { background-color: white; max-width: 12px; margin: 0 3px; height: 12px; } .btn { margin-top: auto; }

Related: See More


Questions / Comments: