From: Chris Rebert Date: Tue, 6 May 2014 18:34:46 +0000 (-0700) Subject: tweak formatting in Carousel docs for clarity; fixes #13522 X-Git-Tag: v3.2.0~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d36c150569c982a24935bfc90e77e7a59986497b;p=thirdparty%2Fbootstrap.git tweak formatting in Carousel docs for clarity; fixes #13522 --- diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html index 2b5b0111b1..fa7476b686 100644 --- a/docs/_includes/js/carousel.html +++ b/docs/_includes/js/carousel.html @@ -128,7 +128,7 @@

Multiple carousels

-

Carousels require the use of an id on the outermost container, .carousel, for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

+

Carousels require the use of an id on the outermost container (the .carousel) for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

Via data attributes

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2", which shifts the slide position to a particular index beginning with 0.