Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Breaking News Carousel Bootstrap 4"
Bootstrap 4.1.1 Snippet by
aribudin
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
23.9K
 
56 Fav
Post to Facebook
Tweet this
<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; } }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
Good
amd386
()
-
6 years ago
-
Reply
0
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76