Click here to Skip to main content
15,891,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Folks,

In all demos and examples I have found on the web the containing div for carousels shows a class assignnent of carousel slide:

<div id="myCarousel" class="carousel slide">


However when creating this in an aspx page the side is marked as unknown Css class and in fact I cannot find it defined in any of the bootstrap css files or js files. Yet is I leave it off then the carousel does not slide it just jump to each carousel item in sequence. Am I worrying to much about the error message?

What I have tried:

Tons of demos and tutorial perused
Posted
Updated 14-May-19 4:39am

1 solution

It doesn't exist as a CSS class; it's only used as a marker for the Bootstrap script to toggle the sliding behaviour.

You can see where the Javascript checks for the presence of the slide class in the source code:
bootstrap/carousel.js at master · twbs/bootstrap[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900