Warning: session_start(): open(/var/lib/php/fpm/session/sess_k8nb2a0hthc5oc751b73972toh, O_RDWR) failed: Permission denied (13) in /var/www/tst02/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/fpm/session) in /var/www/tst02/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

Notice: Undefined index: HTTP_REFERER in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/cookie-setter.php on line 8
Position - Bootstrap 5 & Material Design 2.0

Position

Position - Bootstrap 5 & Material Design 2.0

Use these helpers for quickly configuring the position of an element.


Basic examples

Fixed top

Position an element at the top of the viewport, from edge to edge. Be sure you understand the ramifications of fixed position in your project; you may need to add additional CSS.


          <div class="fixed-top">...</div>
        

Fixed bottom

Position an element at the bottom of the viewport, from edge to edge. Be sure you understand the ramifications of fixed position in your project; you may need to add additional CSS.


          <div class="fixed-bottom">...</div>
        

Sticky top

Position an element at the top of the viewport, from edge to edge, but only after you scroll past it. The .sticky-top utility uses CSS’s position: sticky, which isn’t fully supported in all browsers.


          <div class="sticky-top">...</div>
        

Responsive sticky top

Responsive variations also exist for .sticky-top utility.


          <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>
        

Additional utilities

Quick positioning classes are available, though they are not responsive.


          <div class="position-static">...</div>
          <div class="position-relative">...</div>
          <div class="position-absolute">...</div>
          <div class="position-fixed">...</div>
          <div class="position-sticky">...</div>