Ive made a carousel that rotates in CodePen but will not rotate in VSCode. The attribute that makes it rotate is the one that says "data-ride="carousel" In other words if you take that attribute out it won't work.
I'm hoping that someone could tell me why this is not working in VS Code.
Here is the HTML
Here is the CSS:
-
-
-
-
.carousel {
-
background:#512DA8;
-
}
-
-
.carousel-item {
-
height: 300px;
-
-
}
-
-
.carousel-item img {
-
position: absolute;
-
top: 0;
-
left: 0;
-
min-height: 300px;
-
}
-
-
.carousel-caption {
-
-
background-color:rgba(0,0,0,.3);
-
padding: 20px 20px 0 20px;
-
position:absolute;
-
right:60px;
-
left:35%;
-
top:30px;
-
height: 250px;
-
width: 60%;
-
z-index: 0;
-
-
}
-
-
-
#carouselButton {
-
right:10px;
-
position: absolute;
-
bottom: 10px;
-
z-index: .8;
-
}
-
-
-
-