"Breaking News Carousel Bootstrap 4"
Bootstrap 4.1.1 Snippet by aribudin

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!--head--> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous"> <!--body--> <div class="container"> <div class="row mb-5"> <div class="col-12 text-center pt-3"> <h1>Breaking News Carousel Bootstrap 4</h1> <p>This is a basic bootstrap sorce code for make responsive magazine breaking news carousel</p> <h4>You like this snippet ? click like button</h4> </div> </div> <!--start code--> <div class="row mb-5"> <div class="col-12 py-4 bg-dark"> <div class="row"> <!--Breaking box--> <div class="col-md-3 col-lg-2 pr-md-0"> <div class="p-2 bg-primary text-white text-center breaking-caret"><span class="font-weight-bold">Breaking News</span></div> </div> <!--end breaking box--> <!--Breaking content--> <div class="col-md-9 col-lg-10 pl-md-4 py-2"> <div class="breaking-box"> <div id="carouselbreaking" class="carousel slide" data-ride="carousel"> <!--breaking news--> <div class="carousel-inner"> <!--post--> <div class="carousel-item"> <a href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/"><span class="position-relative mx-2 badge badge-primary rounded-0">Technology</span></a> <a class="text-white" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">Google Employees Protest Secret Work on Censored Search Engine for China</a> </div> <!--post--> <div class="carousel-item"> <a href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/"><span class="position-relative mx-2 badge badge-primary rounded-0">Automotive</span></a> <a class="text-white" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">Investors Betting Against Tesla Made $1 Billion on Friday</a> </div> <!--post--> <div class="carousel-item"> <a href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/"><span class="position-relative mx-2 badge badge-primary rounded-0">Football</span></a> <a class="text-white" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">World cup 2050 will release in Dubay</a> </div> <!--post--> <div class="carousel-item"> <a href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/"><span class="position-relative mx-2 badge badge-primary rounded-0">Beauty</span></a> <a class="text-white" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">Lemon make your skin fresh and glowing</a> </div> <!--post--> <div class="carousel-item active"> <a href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/"><span class="position-relative mx-2 badge badge-primary rounded-0">Sport</span></a> <a class="text-white" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">5 Takeaways From Elon Musk’s Interview With The Times About Tesla</a> </div> </div> <!--end breaking news--> <!--navigation slider--> <div class="navigation-box p-2 d-none d-sm-block"> <!--nav left--> <a class="carousel-control-prev text-primary" href="#carouselbreaking" role="button" data-slide="prev"> <i class="fa fa-angle-left" aria-hidden="true"></i> <span class="sr-only">Previous</span> </a> <!--nav right--> <a class="carousel-control-next text-primary" href="#carouselbreaking" role="button" data-slide="next"> <i class="fa fa-angle-right" aria-hidden="true"></i> <span class="sr-only">Next</span> </a> </div> <!--end navigation slider--> </div> </div> </div> <!--end breaking content--> </div> </div> </div> <!--end code--> <div class="row mb-4"> <div class="col-12 text-center"> <p>Design by Ari Budin <a target="_blank" href="https://bootstrap.news/bootstrap-4-template-news-portal-magazine/">Bootstrap.News</a> | Font by Font Awesome 5</p> </div> </div> </div>
.navigation-box { top: .4rem; right: .8rem; width: 2rem; position: absolute; } @media (min-width: 768px){ .breaking-caret:after { content: ""; width: 0; height: 0; border-top: 20px solid transparent; border-left: 15px solid #007bff; border-bottom: 20px solid transparent; position: absolute; right: -15px; top: 0; } }

Related: See More


Questions / Comments:

Good

amd386 () - 1 month ago - Reply 0