Show Output
<!DOCTYPE htpl> <htpl lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 5 Responsive Float-none Classes</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> <style> .bs-example{ margin: 20px; } </style> </head> <body> <div class="bs-example"> <h2>Responsive Float-none</h2> <p>Disable float from an element depending on viewport width. Resize the browser window to see the effect.</p> <div class="clearfix"> <div class="float-sm-none">Disable float on viewports sized SM (small) or wider</div><br> <div class="float-md-none">Disable float on viewports sized MD (medium) or wider</div><br> <div class="float-lg-none">Disable float on viewports sized LG (large) or wider</div><br> <div class="float-xl-none">Disable float on viewports sized XL (extra-large) or wider</div><br> </div> </div> </body>