]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
tweak formatting in Carousel docs for clarity; fixes #13522
authorChris Rebert <github@rebertia.com>
Tue, 6 May 2014 18:34:46 +0000 (11:34 -0700)
committerChris Rebert <github@rebertia.com>
Tue, 6 May 2014 18:34:46 +0000 (11:34 -0700)
docs/_includes/js/carousel.html

index 2b5b0111b13eee3e836787a28c43f7c5d83befda..fa7476b686b57c3c766e9b3ad6ea7dda0121e94b 100644 (file)
   <h2 id="carousel-usage">Usage</h2>
 
   <h3>Multiple carousels</h3>
-  <p>Carousels require the use of an <code>id</code> on the outermost container, <code>.carousel</code>, for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's <code>id</code>, be sure to update the relevant controls.</p>
+  <p>Carousels require the use of an <code>id</code> on the outermost container (the <code>.carousel</code>) for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's <code>id</code>, be sure to update the relevant controls.</p>
 
   <h3>Via data attributes</h3>
   <p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>