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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.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;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Good

amd386 () - 5 years ago - Reply 0