i have bootstrap class defined as <div class="carousel-item projects"> how would i write…
- User
i have bootstrap class defined as how would i write css is the below correct : .carousel-item projects { margin-right: 0; flex: 0 0 33.333333%; display: block; }
- Assistant
The CSS selector you've written is not correct for targeting the elements with both classes because you're missing a dot (
.) before the second class name. In CSS, when you want to target an element that has multiple classes, you need to concatenate the class names with a dot without any spaces.To correctly target the
<div class="carousel-item projects">, you would write your CSS like this:css.carousel-item.projects { margin-right: 0; flex: 0 0 33.333333%; display: block; }This selector will apply the defined styles only to elements that have both the
carousel-itemclass and theprojectsclass. - User
I have class defined as <.carousel-inner projects> and also <.carousel-item projects> please rectify the following javascript code to animate card one by one here's the js code : var carouselWidth = (".carousel-item.projects").width(); var scrollPosition = 0;
- Assistant
- User
The following JS code stops at the end of the carousel slide, I want again on click to show 1st carousel slide - go on loop on click. Please correct the code : var carouselWidth = (".carousel-item.projects").width(); var scrollPosition = 0;
- Assistant
- User
No after say 7th carousel slide when the user clicks next it should show slide 1 but 7th slide be previous slide and then when user click next it should show slide 2 and previous slide will be slide 1, one by one
- Assistant
- User
No loop one show card one by one if reaches say on last card say 7 it should show next card 1 one by one then on next click card 2 example Card 1, Card 2, Card 3, Card 4, Card 5, Card 6, Card 7, User Click Next Card 2, Card 3, Card 4, Card 5, Card 6, Card 7, Card 1, User Clicks Next Card 3, Card 4, Card 5, Card 6, Card 7, Card 1, Card 2,
Movement should be one by one slide card at a time
- Assistant