carousel inner item populate with for loop puting active class on all carousel item
CSS
<?php
include '../employee.php';
$obj= new employees();
$result=$obj->select_image();
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<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">
<title>Dhruv</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div id="carouselExampleInterval" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<?php
$count = 0;
foreach ($result as $values){
?>
<div class="carousel-item <?php
if($count==0){
echo "active";
}
else{
echo " ";
}
?>" data-interval="2000">
<img src="<?php echo $values['profile_pic']; ?>" class=" w-100 d-block " alt="...">
</div>
<?php
$count++;
}
?>
</div>
<a class="carousel-control-prev" href="#carouselExampleInterval" 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="#carouselExampleInterval" 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>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
Also in CSS:
- Title
- div scrollable content
- Category
- CSS
- Title
- line spacing css
- Category
- CSS
- Title
- how to mirror object through css
- Category
- CSS
- Title
- kotlin string to int
- Category
- CSS
- Title
- css psedo class
- Category
- CSS
- Title
- .alert-validation css
- Category
- CSS
- Title
- will change css
- Category
- CSS
- Title
- add css to an html file
- Category
- CSS
- Title
- how to add css file in wordpress
- Category
- CSS
- Title
- scss to css
- Category
- CSS
- Title
- change background input css
- Category
- CSS
- Title
- use PurifyCSS with hugo
- Category
- CSS
- Title
- css hiddden
- Category
- CSS
- Title
- remove list bullet css
- Category
- CSS
- Title
- display table css
- Category
- CSS
- Title
- padding css shorthand
- Category
- CSS
- Title
- css list no bullets
- Category
- CSS
- Title
- background color gradient css
- Category
- CSS
- Title
- how to change the page background in css
- Category
- CSS
- Title
- how to create slideshow header in html and css
- Category
- CSS
- Title
- vh in css
- Category
- CSS
- Title
- DevTools failed to load SourceMap: Could not load content for bootstrap.min.css.map
- Category
- CSS
- Title
- tzutc
- Category
- CSS
- Title
- all text in caps using css
- Category
- CSS
- Title
- image orientation css
- Category
- CSS
- Title
- overflow dottet
- Category
- CSS
- Title
- css max height
- Category
- CSS
- Title
- css disable mouse events
- Category
- CSS
- Title
- vue scoped css not working
- Category
- CSS
- Title
- border-box css
- Category
- CSS
- Title
- responsive navbar
- Category
- CSS
- Title
- how to make text uppercase in css
- Category
- CSS
- Title
- neomorphic box
- Category
- CSS
- Title
- text overflow ellipsis css
- Category
- CSS
- Title
- how to add css for ::before event in jquery
- Category
- CSS
- Title
- onhover mouse pointer css
- Category
- CSS
- Title
- using foundation css to add social media links
- Category
- CSS
- Title
- aos animate
- Category
- CSS
- Title
- custom scrollbar css
- Category
- CSS
- Title
- update data in firestore
- Category
- CSS
- Title
- react import css
- Category
- CSS
- Title
- css font size
- Category
- CSS
- Title
- react native tutorial
- Category
- CSS
- Title
- sketchup make
- Category
- CSS
- Title
- css queryselector
- Category
- CSS
- Title
- how to add background in css
- Category
- CSS
- Title
- textarea only one line
- Category
- CSS
- Title
- scss mixin skip argument use default
- Category
- CSS
- Title
- css flex content right
- Category
- CSS
- Title
- external css
- Category
- CSS
- Title
- css float
- Category
- CSS
- Title
- rotate background image css
- Category
- CSS
- Title
- js ransform css
- Category
- CSS
- Title
- font family css
- Category
- CSS
- Title
- font awesome cdn
- Category
- CSS
- Title
- upload file to s3 using javascript sdk
- Category
- CSS
- Title
- keyframe in css
- Category
- CSS
- Title
- css no overflow
- Category
- CSS
- Title
- css onclick change color
- Category
- CSS
- Title
- gcd
- Category
- CSS
- Title
- flex wrap css
- Category
- CSS
- Title
- how to change highlight color on website
- Category
- CSS
- Title
- edit scrollbar css
- Category
- CSS
- Title
- how to change the bullet points in css
- Category
- CSS
- Title
- text underline hover css
- Category
- CSS
- Title
- box shadow css
- Category
- CSS
- Title
- como fazer uma linha vertical no html
- Category
- CSS
- Title
- import google fonts into react
- Category
- CSS
- Title
- remove html scroll bar
- Category
- CSS
- Title
- background image with color overlay gradient css
- Category
- CSS
- Title
- css font families
- Category
- CSS
- Title
- change img src css
- Category
- CSS
- Title
- transition prefixes css
- Category
- CSS
- Title
- scroll snap css
- Category
- CSS
- Title
- adding shadow to a div
- Category
- CSS
- Title
- nth-child() css
- Category
- CSS
- Title
- how to only make a part bold in css
- Category
- CSS
- Title
- html link to css in another folder
- Category
- CSS
- Title
- how to change the background color in css
- Category
- CSS
- Title
- css hover
- Category
- CSS
- Title
- font weight css
- Category
- CSS
- Title
- box bottom shadow css
- Category
- CSS
- Title
- vertical align h1 inside div
- Category
- CSS
- Title
- general sibling selector
- Category
- CSS
- Title
- online bootstrap css file link
- Category
- CSS
- Title
- spring boot
- Category
- CSS
- Title
- font condensed
- Category
- CSS
- Title
- counter increase size css in js
- Category
- CSS
- Title
- how to highlight text in css
- Category
- CSS
- Title
- css position options
- Category
- CSS
- Title
- css animation generator
- Category
- CSS
- Title
- css flex center horizontally and vertically
- Category
- CSS
- Title
- css nested scrollbars
- Category
- CSS
- Title
- center image css
- Category
- CSS
- Title
- link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"
- Category
- CSS
- Title
- how to use sass
- Category
- CSS
- Title
- how to change jumbotron size
- Category
- CSS
- Title
- react import bootstrap css
- Category
- CSS
- Title
- css text shadow not showing in mac chrome
- Category
- CSS
- Title
- cursor as image css
- Category
- CSS