how to align center list images - html

I need to align my li images in center. I have tried style="text-align: center;" in ul component.
but it did not work. Thanks in advance.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap#5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<ul class="portfolioContainer row" style="text-align: center;">
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=1.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=1.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=2.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=2.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=3.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"> </i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=3.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=4.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=4.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=5.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=5.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=6.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=6.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=7.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=7s.jpg" alt=""> </div>
</li>
<li class="za col-xs-6 col-sm-6 col-md-6 col-lg-4">
<div class="lightCon"> <span class="hoverBox"> <span class="smallIcon"> <a rel="lightbox-demo" href="https://via.placeholder.com/50x50.png?text=8.jpg" title=" " class="zoom lb lb_warsaw1"><i class="fa fa-plus fa-2x" style="display: block;"></i></a> </span> </span> <img src="https://via.placeholder.com/50x50.png?text=8.jpg" alt=""> </div>
</li>
</ul>

you can use flex-box o grid
ul {
display: grid;
place-items: center;
}
ul {
display: flex;
align-items: center;
justify-content: center;
}

Related

How to exclude part of the code with TWIG?

I have a Drupal 8 TWIG file with this code :
<div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-0 text-center">
<i class="far fa-heart fa-lg"></i> {{ product.flag_like_product }}
</div>
Is it possible to exclude the following code :
<div class="flag flag-like-product js-flag-like-product-14 action-flag">
<a title="" href="/fr/flag/details/flag/like_product/14?destination=/fr/boutique/exemple-dune-boutique" class="use-ajax" data-dialog-type="modal" data-dialog-options="{"width":"auto"}" rel="nofollow">
<span class="btn btn-outline-success btn-sm">
<i class="far fa-heart fa-lg"></i> J'aime
</span>
</a>
</div>
Here is the rendering of the code :
<div class="row p-0 m-0">
<div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-0 text-center">
<i class="far fa-heart fa-lg"></i>
<div class="bs-field-like-link">
<div class="flag flag-like-product js-flag-like-product-14 action-flag">
<a title="" href="/fr/flag/details/flag/like_product/14?destination=/fr/boutique/exemple-dune-boutique" class="use-ajax" data-dialog-type="modal" data-dialog-options="{"width":"auto"}" rel="nofollow">
<span class="btn btn-outline-success btn-sm">
<i class="far fa-heart fa-lg"></i> J'aime
</span>
</a>
</div>
</div>
<span class="bs-field-like-count">
1
</span>
</div>
<div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-0 text-center">
<i class="far fa-comment fa-lg"></i> 0
</div>
<div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-0 text-center">
<i class="fas fa-share-alt fa-lg"></i> 0
</div>
</div>

Show vertical scrollbar of the page on mouse hover

I am having trouble showing the main scrollbar of the page on hover.
I was working on my portfolio and I have hidden the page scrollbar. I tried to show the scrollbar while hovering over the main container.
I am attaching my portfolio page link and my code below. Any kind of help will be applicable!
Please note I want it to be in pure CSS, don't want to use JS or jQuery
::-webkit-scrollbar
display: none;
width: 15px
background-color: #fff
::-webkit-scrollbar-thumb
display: none;
.main-div:hover ::-webkit-scrollbar
display: inline;
.main-div:hover ::-webkit-scrollbar-thumb
display: inline;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<!-- Main Section Starts
======================== -->
<section>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 col-lg-4 col-sm-12 col-12">
<aside>
<div class="personal-info wow animated fadeInLeft">
<img src="assets/images/pp.jpg" alt="dp">
<p></p>
<div class="info">
<h2>Nazifa Rashid</h2>
<div id="typed-strings">
<h3><strong>Frontend Developer</strong></h3>
</div>
<span class="typed"></span>
</div>
<div class="icons">
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
<button type="button" class="btn btn-success" data-toggle="tooltip" data-placement="top" title="Freelance">Hire Me </a></button>
<button type="button" class="btn btn-outline-success" data-toggle="tooltip" data-placement="bottom" title="Download">Download Resume</button>
</div>
</aside>
</div>
<div class="col-md-12 col-lg-8 col-sm-12 col-12">
<div class="main-div">
<!-- Slider Starts Here
======================= -->
<div class="slideshow-container">
<!-- About Section Starts
========================= -->
<div class="mySlides wow animated fadeInRight" id="about">
<div class="title">
<h3><span>a</span>bout Me</h3>
</div>
<p>
Hi, I am Nazifa Tasfia Rashid. I am a Frontend Developer at SJ Innovation. I have experience on working Wordpress Page Builders, Responsive email templates and Responsive PSD to Html converstion with Cross Browser Compatibility and well maintained coding standards.
</p>
<div class="info">
<div class="row">
<div class="col-12 col-md-6 col-sm-12 col-lg-6">
<h5>Date of birth : <span>22 October</span></h5>
<h5>Email : <span>nazifarashid1822#gmail.com</span></h5>
</div>
<div class="col-12 col-md-6 col-sm-12 col-lg-6">
<h5>Address : <span>House #2, abc street,
Bangladesh</span></h5>
<h5>Phone : <span>+123-4567-89</span></h5>
</div>
</div>
</div>
<div class="icons">
<span>Follow Me <i class="fas fa-angle-double-right"></i> </span>
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
<button type="button" class="btn btn-outline-success" data-toggle="tooltip" data-placement="top" title="Download">Download Resume <i class="fas fa-long-arrow-alt-right"></i></button>
</div>
<!-- About Section Ends
======================= -->
<!-- Skills & Education Section Starts
====================================== -->
<div class="mySlides wow animated fadeInRight" id="SE">
<div class="title">
<h3><span>m</span>y skiils & education</h3>
</div>
<div class="row">
<div class="col-12">
<div id="skills">
<div class="row">
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col-6 text_">Html5</div>
<div class="col-6 text-right">98%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar html progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col text_">CSS3</div>
<div class="col text-right">98%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar css progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="97" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col text_">SASS</div>
<div class="col text-right">90%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar sass progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row">
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">Bootatrap 4</div>
<div class="col text-right ">95%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar bootstrap progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">jQuery</div>
<div class="col text-right">90%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar jquery progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">JavaScript</div>
<div class="col text-right">60%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar js progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">PHP</div>
<div class="col text-right">50%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar php progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">MySQL</div>
<div class="col text-right">60%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar db progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">C/C++</div>
<div class="col text-right">50%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar c progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12">
<div id="education">
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<i class="fas fa-user-graduate"></i> University
</button>
</h2>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2014-2018</span>
<ul class="edu">
<li>
<h4>Leading University</h4>
</li>
<li>
<p>Bachelor Degree | Computer Science & Engineering</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<i class="fas fa-graduation-cap"></i> College
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2013</span>
<ul>
<li>
<h4>Scholarshome</h4>
</li>
<li>
<p>HSC | Science</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingThree">
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
<i class="fas fa-university"></i> School
</button>
</h2>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2011</span>
<ul>
<li>
<h4>Blue Bird School & College</h4>
</li>
<li>
<p>SSC | Science</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Skills & Education Section Ends
==================================== -->
<!-- Service Section Starts
=========================== -->
<div class="mySlides wow animated fadeInRight" id="services">
<div class="title">
<h3><span>m</span>y services</h3>
</div>
<div class="services">
<div class="row">
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-html5" style="color: #DE4B25;"></i></div>
<h3>PSD To HTML</h3>
<p>I can convert any PSD to HTML. It will be user friendly and work accross every devices. I can also use any kind of HTML CSS framework with proper support of jQuery and plugins.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-mailchimp" style="color: rgb(80, 80, 80);"></i></div>
<h3>Email Template</h3>
<p>I will provide full responsive email templates that will support not only in browsers but also on gamil and outlook.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-wordpress" style="color: #207297;"></i></div>
<h3>Wordpress</h3>
<p>I can do wordpress customization and able to work with any kind of page builders. Also I'll try to keep it as simple as the admin can easily customize the site whenever needed.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fas fa-code" style="color: #816047"></i></div>
<h3>Clean & Optimized Code</h3>
<p>I'll write clean and optimized code and maintain proper coding structure and standard. I'll write proper commenting so that after me anyone can work on the code. It will also be seo friendly</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-firefox" style="color: #F86B0D;"></i></div>
<h3>Cross Browser Compatibility</h3>
<p>I'll write code that will work accross browsers.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fas fa-users" style="color: #F36B6D;"></i></div>
<h3>User Friendly</h3>
<p>I can build user friendly websites that will help users to experience the best quality and service of the website.</p>
</div>
</div>
</div>
</div>
<div class="process">
<div class="row">
<div class="col-12">
<h4>My Work Process</h4>
</div>
</div>
<div class="row">
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-lightbulb"></i>
<p>idea</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-puzzle-piece"></i>
<p>concept</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-paint-brush"></i>
<p>design</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-cube"></i>
<p>develop</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-bug"></i>
<p>test</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-rocket"></i>
<p>lunch</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Service Section Ends
========================= -->
<div class="mySlides wow animated fadeInRight">
</div>
<!-- Contact Section Starts
=========================== -->
<div class="mySlides wow animated fadeInRight" id="contact">
<div class="title">
<h3><span>c</span>ontact me</h3>
</div>
<div class="row">
<div class="col-md-8 col-sm-12 col-12 col-lg-8">
<form>
<div class="form-group">
<input type="name" class="form-control" id="exampleInputName" placeholder="Name">
</div>
<div class="form-group">
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
</div>
<div class="form-group">
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" placeholder="Leave a Message"></textarea>
</div>
<button type="submit" class="btn btn-outline-success">Send <i class="fas fa-paper-plane"></i> </button>
</form>
</div>
<div class="col-md-4 col-lg-4 col-sm-12 col-12">
<div class="personal-info">
<h5>Date of birth : <span>22 October</span></h5>
<h5>Email : <span>nazifarashid1822#gmail.com</span></h5>
<h5>Address : <span>House #2, abc street,
Bangladesh</span></h5>
<h5>Phone : <span>+123-4567-89</span></h5>
</div>
<div class="icons icons-contact">
<span>Follow Me <i class="fas fa-angle-double-right"></i> </span>
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
</div>
<!-- Contact Section Ends
========================= -->
<a class="prev" onclick="plusSlides(-1)">❮</a>
<br>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
<span class="dot" onclick="currentSlide(5)"></span>
</div>
<!-- Slider Ends Here
===================== -->
</div>
</div>
</div>
</section>
<!-- Main Section Ends
====================== -->
</body>
</html>
Here is my portfolio link : https://nazifa22.github.io/Portfolio-2/
The answers I got was only for the div or a section, not for the whole page
Make scrollbars only visible when a Div is hovered over?
Add this CSS
.main-div{
overflow:hidden;
max-height:100vh;
}
.main-div:hover{
max-height:auto;
overflow:auto;
}
.main-div{
overflow:hidden;
max-height:100vh;
}
.main-div:hover{
max-height:auto;
overflow:auto;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<!-- Main Section Starts
======================== -->
<section>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 col-lg-4 col-sm-12 col-12">
<aside>
<div class="personal-info wow animated fadeInLeft">
<img src="assets/images/pp.jpg" alt="dp">
<p></p>
<div class="info">
<h2>Nazifa Rashid</h2>
<div id="typed-strings">
<h3><strong>Frontend Developer</strong></h3>
</div>
<span class="typed"></span>
</div>
<div class="icons">
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
<button type="button" class="btn btn-success" data-toggle="tooltip" data-placement="top" title="Freelance">Hire Me </a></button>
<button type="button" class="btn btn-outline-success" data-toggle="tooltip" data-placement="bottom" title="Download">Download Resume</button>
</div>
</aside>
</div>
<div class="col-md-12 col-lg-8 col-sm-12 col-12">
<div class="main-div">
<!-- Slider Starts Here
======================= -->
<div class="slideshow-container">
<!-- About Section Starts
========================= -->
<div class="mySlides wow animated fadeInRight" id="about">
<div class="title">
<h3><span>a</span>bout Me</h3>
</div>
<p>
Hi, I am Nazifa Tasfia Rashid. I am a Frontend Developer at SJ Innovation. I have experience on working Wordpress Page Builders, Responsive email templates and Responsive PSD to Html converstion with Cross Browser Compatibility and well maintained coding standards.
</p>
<div class="info">
<div class="row">
<div class="col-12 col-md-6 col-sm-12 col-lg-6">
<h5>Date of birth : <span>22 October</span></h5>
<h5>Email : <span>nazifarashid1822#gmail.com</span></h5>
</div>
<div class="col-12 col-md-6 col-sm-12 col-lg-6">
<h5>Address : <span>House #2, abc street,
Bangladesh</span></h5>
<h5>Phone : <span>+123-4567-89</span></h5>
</div>
</div>
</div>
<div class="icons">
<span>Follow Me <i class="fas fa-angle-double-right"></i> </span>
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
<button type="button" class="btn btn-outline-success" data-toggle="tooltip" data-placement="top" title="Download">Download Resume <i class="fas fa-long-arrow-alt-right"></i></button>
</div>
<!-- About Section Ends
======================= -->
<!-- Skills & Education Section Starts
====================================== -->
<div class="mySlides wow animated fadeInRight" id="SE">
<div class="title">
<h3><span>m</span>y skiils & education</h3>
</div>
<div class="row">
<div class="col-12">
<div id="skills">
<div class="row">
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col-6 text_">Html5</div>
<div class="col-6 text-right">98%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar html progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col text_">CSS3</div>
<div class="col text-right">98%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar css progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="97" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-lg-4 col-12">
<div class="row">
<div class="col text_">SASS</div>
<div class="col text-right">90%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar sass progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row">
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">Bootatrap 4</div>
<div class="col text-right ">95%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar bootstrap progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">jQuery</div>
<div class="col text-right">90%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar jquery progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">JavaScript</div>
<div class="col text-right">60%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar js progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">PHP</div>
<div class="col text-right">50%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar php progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">MySQL</div>
<div class="col text-right">60%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar db progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="row">
<div class="col text_">C/C++</div>
<div class="col text-right">50%</div>
</div>
<div class="progress" style="height: 10px;">
<div class="progress-bar c progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12">
<div id="education">
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<i class="fas fa-user-graduate"></i> University
</button>
</h2>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2014-2018</span>
<ul class="edu">
<li>
<h4>Leading University</h4>
</li>
<li>
<p>Bachelor Degree | Computer Science & Engineering</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<i class="fas fa-graduation-cap"></i> College
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2013</span>
<ul>
<li>
<h4>Scholarshome</h4>
</li>
<li>
<p>HSC | Science</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingThree">
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
<i class="fas fa-university"></i> School
</button>
</h2>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li>
<span>2011</span>
<ul>
<li>
<h4>Blue Bird School & College</h4>
</li>
<li>
<p>SSC | Science</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Skills & Education Section Ends
==================================== -->
<!-- Service Section Starts
=========================== -->
<div class="mySlides wow animated fadeInRight" id="services">
<div class="title">
<h3><span>m</span>y services</h3>
</div>
<div class="services">
<div class="row">
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-html5" style="color: #DE4B25;"></i></div>
<h3>PSD To HTML</h3>
<p>I can convert any PSD to HTML. It will be user friendly and work accross every devices. I can also use any kind of HTML CSS framework with proper support of jQuery and plugins.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-mailchimp" style="color: rgb(80, 80, 80);"></i></div>
<h3>Email Template</h3>
<p>I will provide full responsive email templates that will support not only in browsers but also on gamil and outlook.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-wordpress" style="color: #207297;"></i></div>
<h3>Wordpress</h3>
<p>I can do wordpress customization and able to work with any kind of page builders. Also I'll try to keep it as simple as the admin can easily customize the site whenever needed.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fas fa-code" style="color: #816047"></i></div>
<h3>Clean & Optimized Code</h3>
<p>I'll write clean and optimized code and maintain proper coding structure and standard. I'll write proper commenting so that after me anyone can work on the code. It will also be seo friendly</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fab fa-firefox" style="color: #F86B0D;"></i></div>
<h3>Cross Browser Compatibility</h3>
<p>I'll write code that will work accross browsers.</p>
</div>
</div>
<div class="col-12 col-md-4 col-sm-6 col-lg-4">
<div class="service-section">
<div><i class="fas fa-users" style="color: #F36B6D;"></i></div>
<h3>User Friendly</h3>
<p>I can build user friendly websites that will help users to experience the best quality and service of the website.</p>
</div>
</div>
</div>
</div>
<div class="process">
<div class="row">
<div class="col-12">
<h4>My Work Process</h4>
</div>
</div>
<div class="row">
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-lightbulb"></i>
<p>idea</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-puzzle-piece"></i>
<p>concept</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-paint-brush"></i>
<p>design</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-cube"></i>
<p>develop</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-bug"></i>
<p>test</p>
</div>
</div>
</div>
<div class="col-md-2 col-lg-2 col-sm-4 col-12">
<div class="wrapper">
<div class="icon">
<i class="fas fa-rocket"></i>
<p>lunch</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Service Section Ends
========================= -->
<div class="mySlides wow animated fadeInRight">
</div>
<!-- Contact Section Starts
=========================== -->
<div class="mySlides wow animated fadeInRight" id="contact">
<div class="title">
<h3><span>c</span>ontact me</h3>
</div>
<div class="row">
<div class="col-md-8 col-sm-12 col-12 col-lg-8">
<form>
<div class="form-group">
<input type="name" class="form-control" id="exampleInputName" placeholder="Name">
</div>
<div class="form-group">
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
</div>
<div class="form-group">
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" placeholder="Leave a Message"></textarea>
</div>
<button type="submit" class="btn btn-outline-success">Send <i class="fas fa-paper-plane"></i> </button>
</form>
</div>
<div class="col-md-4 col-lg-4 col-sm-12 col-12">
<div class="personal-info">
<h5>Date of birth : <span>22 October</span></h5>
<h5>Email : <span>nazifarashid1822#gmail.com</span></h5>
<h5>Address : <span>House #2, abc street,
Bangladesh</span></h5>
<h5>Phone : <span>+123-4567-89</span></h5>
</div>
<div class="icons icons-contact">
<span>Follow Me <i class="fas fa-angle-double-right"></i> </span>
<a data-toggle="tooltip" data-placement="left" title="Facebook" href="https://www.facebook.com/nnazeefaa" target="_blank" style="color: #395599;"><i class="fab fa-facebook"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Twitter" href="https://twitter.com/NazifaRashid2" target="_blank" class="color: #00A7E7;"><i class="fab fa-twitter"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Instagram" href="https://www.instagram.com/_nazifa_rashid/?hl=en" target="_blank" style="color: #A4358F;"><i class="fab fa-instagram"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Linkedin" href="https://www.linkedin.com/in/nazifa-rashid-681155164/" target="_blank" style="color: #0271AE;"><i class="fab fa-linkedin"></i></a>
<a data-toggle="tooltip" data-placement="right" title="Github" href="https://github.com/nazifa22?tab=repositories" target="_blank" style="color: #222;"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
</div>
<!-- Contact Section Ends
========================= -->
<a class="prev" onclick="plusSlides(-1)">❮</a>
<br>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
<span class="dot" onclick="currentSlide(5)"></span>
</div>
<!-- Slider Ends Here
===================== -->
</div>
</div>
</div>
</section>
<!-- Main Section Ends
====================== -->
</body>
</html>

Bootstrap slider doesn't work

I downloaded html and css codes from bootstrap then run it on my local server but the slider function doesn't work. The screen just dropped below when I click the arrow. I don't know why it doesn't work in spite of just copied the codes below from bootstrap.
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-9">
<h3>
Carousel Product Cart Slider</h3>
</div>
<div class="col-md-3">
<!-- Controls -->
<div class="controls pull-right hidden-xs">
<a class="left fa fa-chevron-left btn btn-success" href="#carousel-example"
data-slide="prev"></a>
<a class="right fa fa-chevron-right btn btn-success" href="#carousel-example"
data-slide="next"></a>
</div>
</div>
</div>
<div id="carousel-example" class="carousel slide hidden-xs" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<div class="row">
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Sample Product</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product Example</h5>
<h5 class="price-text-color">
$249.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Next Sample Product</h5>
<h5 class="price-text-color">
$149.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Sample Product</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="row">
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Grouped Product</h5>
<h5 class="price-text-color">
$249.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$149.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
css codes
/* carousel */
.media-carousel
{
margin-bottom: 0;
padding: 0 40px 30px 40px;
margin-top: 30px;
}
/* Previous button */
.media-carousel .carousel-control.left
{
left: -12px;
background-image: none;
background: none repeat scroll 0 0 #222222;
border: 4px solid #FFFFFF;
border-radius: 23px 23px 23px 23px;
height: 40px;
width : 40px;
margin-top: 30px
}
/* Next button */
.media-carousel .carousel-control.right
{
right: -12px !important;
background-image: none;
background: none repeat scroll 0 0 #222222;
border: 4px solid #FFFFFF;
border-radius: 23px 23px 23px 23px;
height: 40px;
width : 40px;
margin-top: 30px
}
/* Changes the position of the indicators */
.media-carousel .carousel-indicators
{
right: 50%;
top: auto;
bottom: 0px;
margin-right: -19px;
}
/* Changes the colour of the indicators */
.media-carousel .carousel-indicators li
{
background: #c0c0c0;
}
.media-carousel .carousel-indicators .active
{
background: #333333;
}
.media-carousel img
{
width: 250px;
height: 100px
}
/* End carousel */
Please add the following css and scripts in your solution and hope it would be work.
In head section scripts links
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
have look in snippet, It will work proper in full page
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-9">
<h3>
Carousel Product Cart Slider</h3>
</div>
<div class="col-md-3">
<!-- Controls -->
<div class="controls pull-right hidden-xs">
<a class="left fa fa-chevron-left btn btn-success" href="#carousel-example"
data-slide="prev"></a>
<a class="right fa fa-chevron-right btn btn-success" href="#carousel-example"
data-slide="next"></a>
</div>
</div>
</div>
<div id="carousel-example" class="carousel slide hidden-xs" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<div class="row">
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Sample Product</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product Example</h5>
<h5 class="price-text-color">
$249.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Next Sample Product</h5>
<h5 class="price-text-color">
$149.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Sample Product</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="row">
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Grouped Product</h5>
<h5 class="price-text-color">
$249.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$149.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-item">
<div class="photo">
<img src="http://placehold.it/350x260" class="img-responsive" alt="a" />
</div>
<div class="info">
<div class="row">
<div class="price col-md-6">
<h5>
Product with Variants</h5>
<h5 class="price-text-color">
$199.99</h5>
</div>
<div class="rating hidden-sm col-md-6">
<i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="price-text-color fa fa-star"></i><i class="price-text-color fa fa-star">
</i><i class="fa fa-star"></i>
</div>
</div>
<div class="separator clear-left">
<p class="btn-add">
<i class="fa fa-shopping-cart"></i>Add to cart</p>
<p class="btn-details">
<i class="fa fa-list"></i>More details</p>
</div>
<div class="clearfix">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
jsfiddle links
https://jsfiddle.net/6y3za13j/

Centering footer buttons bug with Bootstrap 3

i've a bug when choosing the tablet layout.
It works like a charm on smartphones and desktop but my buttons aren't centered anymore on tablet.
Here's my code :
<body>
<header class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<img src="assets/img/maison.png" alt="logo" class="col-lg-1 col-md-1 col-sm-1 hidden-xs">
<h1 class="text-center">La maison de l'architecte</h1>
</header>
<nav class="">
<div id="left" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<img src="assets/img/city1.jpg" alt="Nos réalisations">
</div>
<div id="side1" class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<img src="assets/img/side1.jpg" alt="Nos projets">
</div>
<div id="side2" class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<img src="assets/img/side2.jpg" alt="Notre ambition">
</div>
</nav>
<footer class="text-center">
<a class="btn btn-primary" href="#"><i class="fa fa-twitter fa-2x"></i></a>
<a class="btn btn-primary" href="#"><i class="fa fa-facebook fa-2x"></i></a>
<a class="btn btn-primary" href="#"><i class="fa fa-google-plus fa-2x"></i></a>
<a class="btn btn-primary" href="#"><i class="fa fa-flickr fa-2x"></i></a>
<a class="btn btn-primary" href="#"><i class="fa fa-spotify fa-2x"></i></a>
</footer>
</body>
Just add the row class to the nav <nav class="row">
see fiddle https://jsfiddle.net/g74Ep/472/

Creating two columns grid layout in Bootstrap

I'm trying to create two columns grid like the following image:
To achieve it, I've written the following code:
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 content-summary">
<a href="#" class="center-block text-center">
<img class="img-responsive img-thumbnail center-block" src="http://placehold.it/300x200&text=Title" alt="Title" />
</a>
<h2 class="text-justify">Title</h2>
<p class="text-justify" style="direction: rtl; height: 165px; overflow:hidden;">Summary of content</p>
<div class="row text-right">
<span class="fa fa-image fa-lg"></span> 12 Images
<span class="fa fa-file-movie-o fa-lg"></span> 2 Videos
<span class="fa fa-file-audio-o fa-lg"></span> 1 Audio
<span class="fa fa-download fa-lg"></span> 3 Downloads
<span class="fa fa-comments-o fa-lg"></span> 18 Comments
<div class="clear-fix"></div>
Read more
</div>
</div>
</div>
.content-summary {
margin-bottom: 10px;
margin-top: 10px;
position: relative;
}
The result of above code is usually as the following image:
Am I in correct way? What's wrong with my code?
<div class="container">
<div class="row">
<div class="col-lg-1">
col-lg-1
</div>
<div class="col-lg-1">
col-lg-2
</div>
</div>
<div class="row">
<div class="col-lg-1">
col-lg-1
</div>
<div class="col-lg-1">
col-lg-2
</div>
</div>
<div class="row">
<div class="col-lg-1">
col-lg-1
</div>
<div class="col-lg-1">
col-lg-2
</div>
</div>
<div class="row">
<div class="col-lg-1">
col-lg-1
</div>
<div class="col-lg-1">
col-lg-2
</div>
</div>
</div>
Using this code 2 column will be manage now you have to add style to each box