Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Responsive Form Layout</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> </head> <body> <div class="m-4"> <form action="/examples/actions/confirmation.php" method="post"> <div class="row align-items-center g-3"> <div class="col-md-auto col-12"> <label class="form-label d-md-none" for="inputEmail">Email</label> <input type="email" class="form-control" id="inputEmail" placeholder="Email" required> </div> <div class="col-md-auto col-12"> <label class="form-label d-md-none" for="inputPassword">Password</label> <input type="password" class="form-control" id="inputPassword" placeholder="Password" required> </div> <div class="col-md-auto col-12"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="checkRemember"> <label class="form-check-label" for="checkRemember">Remember me</label> </div> </div> <div class="col-md-auto col-12"> <button type="submit" class="btn btn-primary">Sign in</button> </div> </div> </form> <p class="mt-4"><strong>Note:</strong> Please change the Editor layout/orientation to see how responsive layout actually works.</p> </div> </body> </html>