Principe
Bootstrap propose de nombreuses classes d'assistance pour positionner rapidement un élément.
Fixed Top
<div class="fixed-top">...</div>
Fixed Bottom
<div class="fixed-bottom">...</div>
Sticky Top
<div class="sticky-top">...</div>
Sticky Top Responsive
Il existe des variantes responsive pour .sticky-top.
<div class="sticky-sm-top">Stick to the top on viewports sized SM (small) or wider</div> <div class="sticky-md-top">Stick to the top on viewports sized MD (medium) or wider</div> <div class="sticky-lg-top">Stick to the top on viewports sized LG (large) or wider</div> <div class="sticky-xl-top">Stick to the top on viewports sized XL (extra-large) or wider</div> <div class="sticky-xxl-top">Stick to the top on viewports sized XXL (extra-extra-large) or wider</div>
Sticky Bottom
<div class="sticky-bottom">...</div>
Sticky Bottom Responsive
Il existe des variantes responsive pour .sticky-bottom.
<div class="sticky-sm-bottom">Stick to the bottom on viewports sized SM (small) or wider</div> <div class="sticky-md-bottom">Stick to the bottom on viewports sized MD (medium) or wider</div> <div class="sticky-lg-bottom">Stick to the bottom on viewports sized LG (large) or wider</div> <div class="sticky-xl-bottom">Stick to the bottom on viewports sized XL (extra-large) or wider</div> <div class="sticky-xxl-bottom">Stick to the bottom on viewports sized XXL (extra-extra-large) or wider</div>